Colored values for cellular automatons
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Samuel Brewton
am 12 Feb. 2021
Beantwortet: KALYAN ACHARJYA
am 13 Feb. 2021
I am looking for a way to display the elements of my matrix as red and blue depending on if they are a 1 or 0. I'm fairly new to Matlab so I'm not sure if there is a way to color the actual matrix output in the command window or if I would have to use something like a colormap?
2 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 13 Feb. 2021
pcolor or imagese
pcolor(mat_data);
colorbar
Set the colorbar properties as per your requirements
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Orange finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!