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');
Best Answer