i want to create a GUI in matlab and display an image after pressing a button.can you help me with that.can i get any material or documentation for creating a GUI IN MATLAB.

3 ビュー (過去 30 日間)
i want to create a GUI in matlab and display an image after pressing a button.can you help me with that.can i get any material or documentation for creating a GUI IN MATLAB.
  1 件のコメント
Ben11
Ben11 2015 年 1 月 16 日
編集済み: Ben11 2015 年 1 月 16 日
Look at any of the first 10 links you get after googling "GUI Matlab" and that should get you going.

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

回答 (1 件)

Eric Keller
Eric Keller 2015 年 1 月 16 日
here is the way I build guis. You can also use guide, but I can't make myself do that sort of thing
function guiexample
h_main = figure('name', 'guiex', ...
'Visible', 'on', ...
'OuterPosition', [500 500 560 360], ...
'units','pixels');
hprintbutton = uicontrol(h_main, ...
'Style', 'pushbutton', ...
'Position', [10 10 50 50], ...
'String', 'Print',...
'Callback', @printsave);
hpanel = uipanel('parent',h_main,'position',[.01,.2,.9,.7],'visible','on','background',[0,0,0]);%[ 110 110 240 240]
hax = axes('parent',hpanel,'position',[.01,.01,.9,.9],'visible','on'); %[ 5 5 220 220]
plot(hax,sin(1:200));
h.menu.file = uimenu(h_main , 'Label', ' File ');
uimenu(h.menu.file , 'Callback', @loaddata, 'Label', 'Load data file', 'Accelerator', 'O')
function printsave(~,~)
printdlg(h_main)
end
end

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by