Coloring specific uitable cells plus adding content

1 Ansicht (letzte 30 Tage)
Eric Zhao
Eric Zhao am 17 Jul. 2017
Kommentiert: jg am 15 Feb. 2018
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!

Akzeptierte Antwort

Jan am 17 Jul. 2017
Bearbeitet: Jan am 17 Jul. 2017
See also: 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 Kommentare
jg am 15 Feb. 2018
It appears that HTML doesn't get interpreted in App Designer-based GUIs, so this solution no longer works.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Adam am 17 Jul. 2017


Find more on Develop Apps Using App Designer in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by