How to set size of table in appdesigner in matlab?

1k Views Asked by At

I'm trying to build a 100*100 table in appdesigner, exactly like uitable(figure,100,100) in Matlab command but in appdesigner I can not set the size of the table. I am in deep need of help to fix it.thanks

1

There are 1 best solutions below

9
On

You can change the size of the table in the startupFcn callback of the figure.

% Initialize the table to have 100 rows and 100 columns
% Each Row-Column cell can also be initialized with real data
app.UITable.Data = cell( 100, 100);

% Specify the row and column names, 100 x 1 cell {'Col 1', 'Col 2', ... }
app.UITable.ColumnName = {};
app.UITable.RowName = {};