Problem with uitable show NaN

Hello
could you help me fill the uitable with the right value
a={};
for i=1:10
a{i,5}=true;
end
h = uitable('data',a, ...
'columnformat', {'numeric','char','logical','toto1','toto2'},'logical'}, ...
'columneditable',true);
if it's not a number it will not be accepted NaN
Thnx for your help

5 件のコメント

Adam
Adam 2016 年 3 月 4 日
I don't understand what your question is.
What is the behaviour you expect from your table and what is currently the behaviour?
Jan
Jan 2016 年 3 月 4 日
編集済み: Jan 2016 年 3 月 4 日
If what is not a number? The code will not run at all, because the number of curly braces is incorrect. There is no coulmn format "toto1" or "toto2".
MM BS
MM BS 2016 年 3 月 4 日
Hello
I correct it in the code : the right code is
a={};
for i=1:10
a{i,5}=true;
end
h = uitable('data',a, ...
'columnformat', {'numeric','char','logical',{'toto1','toto2'},'logical'}, ...
'columneditable',true);
I want that when each column can be filled by the appropiate format not like now only numeric are recognized !
Adam
Adam 2016 年 3 月 4 日
{ 'toto1', 'toto2' }
still isn't a column format though, so far as I am aware.
MM BS
MM BS 2016 年 3 月 4 日
how can i put a choice list of toto1 and toto2?

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

回答 (0 件)

カテゴリ

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

質問済み:

2016 年 3 月 4 日

コメント済み:

2016 年 3 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by