
GUI with Axes, Menu, and Toolbar
12-11
Techniques Used in the Example
This example illustrates the following techniques:
• Passing input arguments to the GUI when it is opened
• Obtaining output from the GUI when it returns
• Shielding the GUI from accidental changes
• Running the GUI across multiple platforms
• Creating menus
• Creating toolbars
• Achieving proper resize behavior
Note This example uses nested functions. For information about using
nested functions, see Nested Functions in the MATLAB documentation.
View the Completed GUI M-Files
If you are reading this in the MATLAB Help browser, you can click the
following links to display the MATLAB Editor with complete listings of the
code used in this example.
Note The following links execute MATLAB commands and are designed to
work within the MATLAB Help browser. If you are reading this online or in
PDF, you should go to the corresponding section in the MATLAB Help
Browser to use the links.
• Click here to display the main GUI M-file in the MATLAB Editor.
• Click here to display the utility
iconRead M-file in the MATLAB Editor.
Creating the Data
The example defines two variables mOutputArgs and mPlotTypes.
mOutputArgs is a cell array that holds output values should the user request
them. It later assigns a default value to this argument.
Komentáře k této Příručce