Filter löschen
Filter löschen

changing width for certain columns in a uitable?

11 Ansichten (letzte 30 Tage)
Del
Del am 16 Feb. 2013
in uitable, do all columns have to have the same width?
I have a table, and I would like certain columns to be wider than others, but when I use
set(t(:,1),'ColumnWidth',{150});
all columns are of the same size.
and when I use :
set(t(:,1),'ColumnWidth',{150});
set(t(:,2),'ColumnWidth',{50});
This gives me an error:"Index exceeds matrix dimensions. "
Any idea?

Akzeptierte Antwort

Jan
Jan am 17 Feb. 2013
uitable('Data', 1:3, 'ColumnWidth', {30,60,90})

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by