colormaps. how do they work?

I am trying to assign colours to an n*m matrix N, so I can then display the matrix with red and blue squares with a white background. I've used my code to do this exact thing with a grayscale plot, with black and white squares, but it appears that trying to convert to colour is a lot more complicated than I imagined.

类别

帮助中心File Exchange 中查找有关 Color and Styling 的更多信息

提问:

2013-7-5

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by