网上常用的方法: if ~isdeployed newIcon=javax.swing.ImageIcon('.piciap.jpg'); else newIcon=javax.swing.ImageIcon('iap.jpg'); end jFrame = get(hObject,'javaframe'); jFrame.setFigureIcon(newIcon); 运行后warning: Warning: figure JavaFrame property will be o ...
GUI是graphical user interface的简称,说白了就是我们常见的对话框。 下面是Matlab提供的一个简单例子,博主加上了自己的注释,供参考。 function hpopup=simple_gui2 % SIMPLE_GUI2 Select a data set from the pop-up menu, then % click one of the plot-type push buttons. Clicking the button % plots ...