Azzera filtri
Azzera filtri

Background color row in table

16 visualizzazioni (ultimi 30 giorni)
Aletta Wilbrink
Aletta Wilbrink il 10 Apr 2018
Risposto: Guillaume il 10 Apr 2018
Is it possible to give specific rows in a table a background color, when I open the variable in my workspace or even give the text a different color?
For example, I have the next table:
t = table([1;2;3;1;2],['a';'b';'c';'d';'e'])
t =
5×2 table
Var1 Var2
____ ____
1 a
2 b
3 c
1 d
2 e
When I open t, I want the rows where Var1 = 2 to have a different background color

Risposta accettata

Guillaume
Guillaume il 10 Apr 2018
No, the variable editor is fairly basic, and does not offer any option to colour cells, columns or rows. If you were to create your own GUI you could use a uitable to display the content of the table but even that has limited colouring capabilities (unless you access the low level java components)

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps 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!

Translated by