Add Components to the GUIDE Layout AreaCommonly 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'ColumnColumnEditable logical 1-by-n matrix
| scalar logical value
| empty matrix ([])Determines data in a
column as editableRow RowName 1-by-n cell array of
stringsRow header label
names
BackgroundColor n-by-3 matrix of
RGB triplesBackground color of
cellsColorRowStriping {on} | off Color striping of
table rows
Data Data Matrix or cell array
of numeric, logical,
or character dataTable data.Create a Table
To create a UI with a table in GUIDE as shown, do the following: