Convert a integer matrix to a red and blue colored matrix
Ältere Kommentare anzeigen
I have the following matrix A = [-1 1 1; 1 -1 1; -1 -1 -1], I want to convert it to a colored matrix with cells corresponding to 1 colored red and -1 colored blue. Something like this:

How do I do that in matlab?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Orange finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
