How to pass values selected from a GUI interface to another *.m script
古いコメントを表示
I am trying to create a GUI interface like the below: a popup menu to select the depth, a slide bar to select the lower end of the colorbar, and then a button to execute the program. My question is how do I pass the values of the two selections (depth and slidebar values) to the matlab program this GUI interface is linked to?
Many thanks.
h1 = uicontrol('Style', 'popup',...
'String', ['| 0 | 100 | 200 |'], 'FontSize', 12, 'Position', [150 240 200 80]);
h2 = uicontrol('style','slide','min',7.0,'max',8.0,'val',7.5
'position',[20 10 260 30]);
h3 = uicontrol('Style', 'pushbutton', 'String', 'plot the figure',...
'FontSize', 14,'Position', [150 45 200 40], 'Callback', 'Calculation');
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!