| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
The five examples that follow illustrate how you can create and program GUIs manually. Each one lists and discusses the components and techniques it uses. By reading and trying the examples, you can learn how to:
Update graphs of tabular data in a GUI and copy them to a new figure
Create of a dialog that does not return until the user makes a choice
Pass input arguments to the GUI when it is opened
Obtain output from the GUI when it returns
Shield the GUI from accidental changes
Run the GUI across multiple platforms
Share callbacks among components
Share data among multiple GUIs
Create menus and context menus
Use an external utility function
Achieve proper resize behavior
Make a GUI modal
Create toolbars
All but one of the examples all use nested functions. For information about using nested functions, see Nested Functions in the MATLAB Programming Fundamentals documentation.
![]() | Examples of GUIs Created Programmatically | GUI with Axes, Menu, and Toolbar | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |