Add Components to the GUIDE Layout Area
Commonly Used Properties
The most commonly used properties of a table component are listed in the table below.
These are grouped in the order they appear in the Table Property Editor. Please refer to
uitable documentation for detail of all the table properties:
Group Property Values Description
ColumnName 1-by-n cell array
of strings |
{'numbered'} | empty
matrix ([])
The header label of
the column.
ColumnFormat Cell array of strings Determines display
and editability of
columns
ColumnWidth 1-by-n cell array or
'auto'
Width of each
column in pixels;
individual column
widths can also be
set to 'auto'
Column
ColumnEditable logical 1-by-n matrix
| scalar logical value
| empty matrix ([])
Determines data in a
column as editable
Row RowName 1-by-n cell array of
strings
Row header label
names
BackgroundColor n-by-3 matrix of
RGB triples
Background color of
cells
Color
RowStriping {on} | off Color striping of
table rows
Data Data Matrix or cell array
of numeric, logical,
or character data
Table data.
Create a Table
To create a UI with a table in GUIDE as shown, do the following: