- http://mathworks.com/matlabcentral/answers/25038-how-to-change-each-cell-color-in-a-uitable
- http://mathworks.com/matlabcentral/answers/71812-for-uitable-backgroundcolor-for-row
- http://www.mathworks.com/matlabcentral/answers/179223-how-to-change-the-cell-color-of-uitable-in-matlab
Colorize table cells upon matrix of logical values
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello guys,
I would like to know how can I colorize the cells of a table that I have in a GUI upon a matrix values.
In details, I have a matrix with the same size as my table of course, full of 0 and 1, so I would like to tell Matlab to change the background color of my table if there is a 1 in my "color matrix".
How can I do that?
0 Commenti
Risposte (1)
Jan
il 18 Ott 2015
If you are talking about uitable objects, a short search in the internet leads to:
Does this help already?
2 Commenti
Jan
il 18 Ott 2015
You can use the HTML method to set the background color of single cells also. It is neither nice nor trivial, but you can hide the ugly details in a dedicated function. I'd expect to find a solution in the FileExchange. A severe problem is, that the cells can contain strings only, neither numbers nor checkboxes.
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!