User`s guide

CreateandRunaProgrammaticGUI
% to the help co mman d.
% (Leave a blank line follo wing the help.)
% Initialization tasks
% Construct th e components
% Initialization tasks
% Callbacks fo r MYGUI
% Utility func tion s for MYGUI
end
The end statement that matches the funct ion statement is necessary becaus e
this document treats GUI creation using nested functions.
Save the f ile in your current folder or at a location that is on your MATLAB
path.
Run the GUI
You can d isplay your GUI at any time by executing its code file. For examp le ,
if your GUI code file is
mygui.m,type
mygui
at the command line. Provide run-time arguments as appropriate. The file
must reside on your path or in your current folder.
When you execute the code, a fully functional copy of the GUI displays on the
screen. If the file includes code to initialize the GUI and callbacks to service
the components, you can manipulate components that it contains. Chapter
12, “Code a Programmatic GUI” tells you h ow to do this.
11-5