MATLAB Creating Graphical User Interfaces

(ff) #1

You can select other plots in the pop-up menu. Clicking the Update button displays the
currently selected plot on the axes.


The UI also has a File menu with three items:



  • Open displays a dialog box from which you can open files on your computer.

  • Print opens the Print dialog box. Clicking OK in the Print dialog box prints the figure.

  • Close closes the UI.


To view the code for these menu choices, open the template in the Layout Editor and click
the Editor button on the toolbar.


Modal Question Dialog


The following figure shows an example of this template.


GUIDE Templates
Free download pdf