10 Lay Out a Programmatic UI
You can change several other characteristics of the table by setting certain properties:
- To control the user’s ability to edit the table cells, set the ColumnEditable property.
- To make your application respond when the user edits a cell, define a
CellEditCallback function. - To add or change row striping, set the RowStriping property.
- To specify row and column names, set the RowName and ColumnName properties.
- To format the data in the table, set the ColumnFormat property.
See Uitable Properties for the entire list of properties.
If you are building a UI using GUIDE, you can set many of the uitable properties using
the Table Property Editor. For more information, see “Create a Table”.
Panels
This code creates a panel:
f = figure;
p = uipanel(f,'Title','My Panel',...
'Position',[.25 .1 .5 .8]);