Set Column and Row visibility in uitable
47 ビュー (過去 30 日間)
古いコメントを表示
hi everyone, my question is: it's possible to set visibility for each column and row inside a uitable?
0 件のコメント
回答 (3 件)
Adam
2015 年 9 月 18 日
Not with pure Matlab. The level of customisation of uitable is very limited using only Matlab functionality. It may be possible using java programming of the underlying components as described in various posts on Yair Altman's blog but I don't recall seeing anything explicitly about visibility.
Can't you just dynamically add and remove rows and columns you want hidden?
Ajay krishna Vasanthakumar
2020 年 12 月 15 日
Hello Daniele Morello,
You can just change the ColumnWidth to hide(invisible) the column
Example:
If you want to hide column 4 in uitable you can set the below property value
'ColumnWidth',{50,275,200,0,225,100}
I know am too late to answer this question, but it will be helpful for others
Thanks
2 件のコメント
Alexander Miniovich
2021 年 3 月 10 日
Hello Ajay,
thank you for your comment. Indeed, helpful. Can I ask which version of Matlab this is applicable from? I tried that in 2019b and setting ColumnWidth in app designer to 0 doesn't actually help. Matlab simply ignores 0 value. If the value is different it is taken into account.
Ajay krishna Vasanthakumar
2021 年 3 月 26 日
Hi Alexander,
i tried it in GUI based on GUIDE. It worked, i didnt try it in appdesigner sorry:( @Alexander Miniovich
Michele Paoletti
2021 年 8 月 31 日
I have the same problem. I have created a table with 3 columns in app designer but I want enable or disable some rows to see the change in a graph without using a checkbox.
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!