User`s guide

15 Examples of GUIs Created Programmatically
PDF, go to the corresponding section in the MATL AB Help Browser to use
the links.
If you intend to modify the layout or code of this GUI example, you should
first save a copy of its code in your current folder (You need write access
to your current folde r to do this.) C lick on the following links to copy the
example files to your current folder and open them.
1 Clickheretocopythetableplot.m file to your current folder
2 edit tab lepl ot orclickheretoopenthecodeintheEditor
If you just want to run the GUI and inspect its code, follow these steps:
1 ClickheretoaddtheexamplefilestotheMATLABpath(onlyforthe
current session).
2 Clickheretorunthetableplot GUI.
3 Click here to display the GUI code file in the Editor (read-only).
Note Do n o t save GUI files to the examples folder where you fo und them,
or you will overwrite the original files. Save them to your current or other
folder that you work in.
Set Up and Interact with the uitable
This example has one file, tableplot.m, that contains its main function plus
two subfunctions (uicontrol callbacks). The main function raises a figure and
populates it w ith uicontrols and one a xes. The figure’s menu bar is hidden, as
its contents are not needed.
% Create a figure that will have a uitable, axes and checkbo xes
figure('Position', [100, 300, 600, 460],...
'Name', 'TableP lot' ,... % Title figure
'NumberTitle', 'off',... % Do not show figure num ber
'MenuBar', 'non e'); % Hide s tand ard menu bar menus
15-24