How to set column format for only one column in uitable

  • Follow


Hi,
I am starting programming in MatLab. I need change format in one column (the last) of my uitable to choise list, but I don't know how many columns this table can have, because it will be declared by user. 

I wanted use code like this, but it is only for known number of columns:
set(table,'ColumnFormat',{'numeric', 'numeric',{'A' 'B' 'C'}});
set(table,'ColumnEditable',[false false true]);

Question is: How can I set only column format of last column ?

Thank you for your help.

PS: Sorry, but my english is not so good.
0
Reply Evzen 12/31/2010 9:59:06 PM

On 31/12/10 3:59 PM, Evzen Brusle wrote:

> I am starting programming in MatLab. I need change format in one column
> (the last) of my uitable to choise list, but I don't know how many
> columns this table can have, because it will be declared by user.
> I wanted use code like this, but it is only for known number of columns:
> set(table,'ColumnFormat',{'numeric', 'numeric',{'A' 'B' 'C'}});
> set(table,'ColumnEditable',[false false true]);
>
> Question is: How can I set only column format of last column ?

Why not get() the current ColumnFormat and ColumnEditable, change the 
last entries to what you want, and set() those properties back ?
0
Reply Walter 1/1/2011 5:25:42 PM


1 Replies
1017 Views

(page loaded in 0.045 seconds)

Similiar Articles:













7/22/2012 8:09:36 AM


Reply: