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에서 File Operations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!