Replace Mathworks icon with my own in the figure

5 ビュー (過去 30 日間)
Mehdi
Mehdi 2015 年 5 月 28 日
コメント済み: Henrik Enquist 2016 年 2 月 4 日
Hi, I have designed an app which I want to sell as an exe file (which is run outside MATLAB environment). I was wondering if it's technically possible to replace the small icon on the upper left corner of the figure with my own. I have credited Mathworks in the app to address the copyright issue. Thank you.

回答 (1 件)

Sean de Wolski
Sean de Wolski 2015 年 5 月 28 日
When you build an exe with MATLAB Compiler, you can specify your own icon for the upper left corner:
Modifying it in the figure in MATLAB conflicts with the software license agreement.
  5 件のコメント
Mehdi
Mehdi 2015 年 5 月 29 日
Thank you Walter. I did find this in the Newsgroup: http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598
The code that they recommend works fine for GUI figures
javaFrame = get(hObject,'JavaFrame');
javaFrame.setFigureIcon(javax.swing.ImageIcon('myicon.PNG'));
But I need to change the icon in the regular figures. Any idea how to do this? Thanks again.
Henrik Enquist
Henrik Enquist 2016 年 2 月 4 日
My trouble with this (otherwise nice) feature is that the compiler produces a very blurry icon. Do I miss something here or...?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by