Changing colors using imagesc
31 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Haneya Qureshi
el 23 de Mzo. de 2018
Comentada: Haneya Qureshi
el 23 de Mzo. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!