changing width for certain columns in a uitable?

조회 수: 7 (최근 30일)
Del
Del 2013년 2월 16일
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?

채택된 답변

Jan
Jan 2013년 2월 17일
uitable('Data', 1:3, 'ColumnWidth', {30,60,90})

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by