When you run the simple graphical user interface (GUI), it appears as shown in the following figure.
To view and run the code that created this GUI:
Set your current folder to one to which you have write access.
Copy the example code and open it in the Editor by issuing the following MATLAB® commands:
copyfile(fullfile(docroot, 'techdoc','creating_guis',... 'examples','simple_gui2*.*')), fileattrib('simple_gui2*.*', '+w'); edit simple_gui2.m
Run the GUI. On the EDITOR tab, in the RUN section, click Run .
Select a data set from the pop-up menu, and then click one of the plot-type buttons.
Clicking the button triggers the execution of a callback that plots the selected data in the axes.
Subsequent topics guide you through the process of creating the GUI. This process begins with Create the Simple Programmatic GUI Code File. Create the GUI to better understand how to program one.