changing width for certain columns in a uitable?

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 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 16 日
編集済み: Azzi Abdelmalek 2013 年 2 月 16 日
What is t?

サインインしてコメントする。

 採用された回答

Jan
Jan 2013 年 2 月 17 日

3 投票

uitable('Data', 1:3, 'ColumnWidth', {30,60,90})

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

Del
2013 年 2 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by