h = uitable()
h = uitable(parent)
h = uitable(..., propertyName, propertyValue)
| Parameter | Description |
|---|---|
| parent | parent object. |
| propertyName, propertyValue | name-value pairs. |
| Parameter | Description |
|---|---|
| h | UI object. |
t = uitable creates a table component. Data accepts numeric, logical, or cell arrays. Properties: ColumnName ('numbered' or cell), RowName, ColumnWidth, ColumnEditable, ColumnSortable, ColumnFormat, RowStriping, Selection/SelectionType/Multiselect, DisplayData (read-only). Callbacks: CellEditCallback (event: Indices, EditData, NewData), SelectionChangedFcn.
f = uifigure('Visible', 'off', 'Name', 'Table', 'Position', [100 100 420 260]);
t = uitable(f, 'Data', magic(4), 'ColumnName', {'A', 'B', 'C', 'D'}, 'Position', [55 40 310 180]);
drawnow();
f = uifigure();
t = uitable(f, 'Data', magic(4), 'ColumnName', {'A', 'B', 'C', 'D'}, 'ColumnEditable', true(1, 4));
| Version | Description |
|---|---|
| 2.0.0 | initial version |