MATLAB Answers

0

Setting ColumnWidth for individual column in OLD uitable

Asked by TestingMatlab on 17 Mar 2016
Latest activity Commented on by Allu Zeff on 8 Jun 2016
How can I set column width for each column in old uitable? I am trying it as follows but it does not work. I can see from several references that ColumnWidth is a settable property in old uitable.
If it is not possible to it via matlab fucntions, any hints on how this can be achieved using underlying java would be appreciated.
Thanks.
h_old=uitable('v0','data',magic(5),'position',[5,5,550,400]);
set(h_old,'Units','normalized')
cwidth={'100' 'auto' 'auto' 'auto' '100'};
set(h_old,'ColumnWidth',cwidth);

  1 Comment

"Undocumented Secrets of MATLAB-Java Programming" (Y.Altman) 4.1.3

Sign in to comment.

0 Answers