set column width for all column

hi,
app.UITableCorrelationTab.Data=Function(xx);
app.UITable_mincap.ColumnWidth=??
i've number columns variable (is equal to height(xx))
how can i set it
example:
height(xx)=4
app.UITable_mincap.ColumnWidth={30,30,30,30};

 Accepted Answer

app.UITable_mincap.ColumnWidth = repmat({30},1,height(xx));

2 Comments

aldo
aldo on 18 Jul 2023
Moved: Voss on 18 Jul 2023
thanks..
i want to delete columnName ..How can i do it? thank
To set all column names to empty:
app.UITable_mincap.ColumnName = repmat({''},1,height(xx));

Sign in to comment.

More Answers (0)

Categories

Asked:

on 18 Jul 2023

Commented:

on 18 Jul 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!