MATLAB Creating Graphical User Interfaces

(ff) #1
Restrict Editing of Cell Values

To restrict the user's ability to edit data in the table, set the ColumnEditable property.
By default, data cannot be edited in the app. Setting the ColumnEditable property to
true for a column allows the user to edit data in that column.

t.ColumnEditable = [false true true true true];

Change Column Format

The ColumnFormat property controls how data is displayed and edited. To specify
choices in a drop-down list, specify a cell array of character vectors as the column format.
In this example, the Self Assessed Health Status column has a drop-down list containing
four options: Excellent, Fair, Good, and Poor.

13 Examples of Programmatic Apps

Free download pdf