Coloring specific uitable cells plus adding content

1 vue (au cours des 30 derniers jours)
Eric Zhao
Eric Zhao le 17 Juil 2017
Commenté : jg le 15 Fév 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!

Réponse acceptée

Jan
Jan le 17 Juil 2017
Modifié(e) : Jan le 17 Juil 2017
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 commentaires
Eric Zhao
Eric Zhao le 17 Juil 2017
Thanks!
jg
jg le 15 Fév 2018
It appears that HTML doesn't get interpreted in App Designer-based GUIs, so this solution no longer works.

Connectez-vous pour commenter.

Plus de réponses (1)

Adam
Adam le 17 Juil 2017

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by