How to manipulate uitables

1 回表示 (過去 30 日間)
Stephen Thompson
Stephen Thompson 2017 年 2 月 8 日
コメント済み: Walter Roberson 2017 年 2 月 9 日
I want to manipulate the logical column in a table using uitable:
figure ('name', 'Channels, original')
t1 = uitable ('Position', [20 20 450 375], 'ColumnWidth', 'auto');
t1.Data = (final); %this is a cell containing 5 columns with the fifth a logical
t1.ColumnName = {'Channel', 'Combine', 'Ratio', 'ISA', 'Resected'};
t1.ColumnEditable = [false false false false true];
Running this generates a table with a ratio box, but how can I change the original table ("final") such that the logical column becomes true/false?

採用された回答

Walter Roberson
Walter Roberson 2017 年 2 月 8 日
t1.ColumnFormat = {'numeric', 'numeric', 'numeric', 'numeric', 'logical'};
  2 件のコメント
Stephen Thompson
Stephen Thompson 2017 年 2 月 8 日
Thanks - however what I want to be able to do is have the manipulations (false/true) 'saved' to the original cell.
Walter Roberson
Walter Roberson 2017 年 2 月 9 日
Which column manipulations? Do you mean that you want to convert the logical values true and false, 1 and 0, to the literal strings 'true' and 'false' ? Or is this to do with detecting that the user has made a change to the column and saving the change somewhere ?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by