Coloring specific uitable cells plus adding content

4 ビュー (過去 30 日間)
Eric Zhao
Eric Zhao 2017 年 7 月 17 日
コメント済み: jg 2018 年 2 月 15 日
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!

採用された回答

Jan
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 件のコメント
Eric Zhao
Eric Zhao 2017 年 7 月 17 日
Thanks!
jg
jg 2018 年 2 月 15 日
It appears that HTML doesn't get interpreted in App Designer-based GUIs, so this solution no longer works.

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

その他の回答 (1 件)

Adam
Adam 2017 年 7 月 17 日

カテゴリ

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