UI That Accepts Parameters and Generates Plots
To get and view the example code:
1 Copy the example FIG-file and code file to your current (writeable) folder and open
the FIG-file in GUIDE:
copyfile(fullfile(docroot, 'techdoc','creating_guis',...
'examples','two_axes*.*')), fileattrib('two_axes*.*', '+w')
guide two_axes.fig
(^2) From the GUIDE Layout Editor, click the Editor button.
The two_axes.m code displays in the MATLAB Editor.