How do i edit my uitable property?

2k Views Asked by At

I have a figure of uitable. I have 4 row and 3 columns.When i go to the property inspector, i cant delete row number 4. How can i delete row number 4?

1

There are 1 best solutions below

3
On BEST ANSWER

In the help to UITABLE PROPERTIES, it says:

The number of columns in the table is the larger of ColumnName and the number of columns in the Data property matrix or cell array.

The same applies to rows.

If you use the default row and column names ('numbered'), the easiest way to get your table to be the right size is to define an defaultData in the command window that has the correct number of rows/columns (in your case, defaultData = zeros(3,3), and set data property to that value.