9 Examples of GUIDE UIs
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 with the following commands:
copyfile(fullfile(docroot, 'techdoc','creating_guis','examples',...
'ex_guide_timergui*.*')), fileattrib('ex_guide_timergui*.*', '+w')
guide ex_guide_timergui.fig
(^2) From the GUIDE Layout Editor, click the Editor button.
The ex_guide_timergui.m code displays in the MATLAB Editor.
The following figures show the UI when you run it. The left figure shows the initial state
of the UI. The right figure shows the UI after running the timer for 5 seconds at its
default period of 1 count per second.