changing width for certain columns in a uitable?

3 vues (au cours des 30 derniers jours)
Del
Del le 16 Fév 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?
  1 commentaire
Azzi Abdelmalek
Azzi Abdelmalek le 16 Fév 2013
Modifié(e) : Azzi Abdelmalek le 16 Fév 2013
What is t?

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 17 Fév 2013
uitable('Data', 1:3, 'ColumnWidth', {30,60,90})

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by