Changing colors using imagesc
31 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Haneya Qureshi
am 23 Mär. 2018
Kommentiert: Haneya Qureshi
am 23 Mär. 2018
I have large matrix M whose elements take the values of either 1, 0 or -1. I am using imagesc(M) but I want to plot green color where there is 1, red color where there is 0 and white color where there is -1 in the matrix. How can I do this?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots 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!