Changing colors using imagesc
21 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Haneya Qureshi
il 23 Mar 2018
Commentato: Haneya Qureshi
il 23 Mar 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Orange 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!