How can I access the logical column data to uncheck the logical cells in uitable?
1 回表示 (過去 30 日間)
古いコメントを表示
Yasho Bharat Boggarapu
2018 年 10 月 19 日
コメント済み: Walter Roberson
2018 年 10 月 19 日
I have created a uitable with logical column with some other numeric columns. How do i uncheck the previously checked logical cell when another logical cell is checked without clicking the cell? I want to do it programmatically.I am unable to figure it out. Please help me out.
0 件のコメント
採用された回答
Walter Roberson
2018 年 10 月 19 日
The CellEditCallback() will be executed when the user clicks to change a value. Your callback can arrange to zero out other values as appropriate.
2 件のコメント
Walter Roberson
2018 年 10 月 19 日
"the logical cells are empty cells"
Make them logical instead. For example,
h = uitable('ColumnFormat', {'logical'}, 'Data', {false;true;false;false},'ColumnEditable', true)
If there is some reason why you must use cells that are empty for false or logical(1) for true, then assign [] to the cell:
h = uitable('ColumnFormat', {'logical'}, 'Data', {[]; []; true; []}, 'ColumnEditable', true);
pause(3); %just for display purposes so you can see the change
h.Data{3} = [];
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!