Convert a integer matrix to a red and blue colored matrix
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Orange in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!