Set format to logical for ROWS in uitable

3 ビュー (過去 30 日間)
Leonard
Leonard 2014 年 8 月 29 日
回答済み: Joseph Cheng 2014 年 8 月 29 日
Hey there, in GUIDE it is possible to set the format for a whole column to logical in a table.
But is it also possible to set a row instead of a column to logical?
I searched for quite a while and didn't find any solution :/
Hope somebody can help!
Thanks in advance
Leo

回答 (1 件)

Joseph Cheng
Joseph Cheng 2014 年 8 月 29 日
It wouldn't be in the setting as the column but you could just add it as a row;
f = figure;
dat = {1,2,3;2,3,4;3,4,5};
dat = [dat;{true,false,false}];
columneditable = [true true true];
tab = uitable;
set(tab,'Data',dat,'ColumnEditable',columneditable)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by