Coloring specific uitable cells plus adding content
1 次查看(过去 30 天)
显示 更早的评论
Hi, I would like to paint the cells with negative numbers with red color and positive with green color on the DMI column. I also like to add a header to the first column, plus shorten the width of the first column. How am I supposed to do that in a coding format? Thanks!
0 个评论
采纳的回答
Jan
2017-7-17
编辑:Jan
2017-7-17
See also: https://www.mathworks.com/matlabcentral/answers/25038-how-to-change-each-cell-color-in-a-uitable for coloring an uitable with HTML. The HTML trick has the disadvantage, that it appears, when you edit the cell.
Please note, that you can find this link easily, if you ask an internet serach engine for "Matlab color uitable".
2 个评论
jg
2018-2-15
It appears that HTML doesn't get interpreted in App Designer-based GUIs, so this solution no longer works.
更多回答(1 个)
另请参阅
类别
在 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!