how to display elements of a 2D matrix as color-coded squares

242 次查看(过去 30 天)
like for a 16x16 matrix:

采纳的回答

bym
bym 2012-5-27
imagesc(your_matrix)
  2 个评论
Image Analyst
Image Analyst 2012-5-27
Or use imshow() (if you have the Image Processing Toolbox) and apply a colormap (of which there are a wide variety of colormaps built in to MATLAB). But whatever you do, don't use pcolor() for this purpose.

请先登录,再进行评论。

更多回答(1 个)

Ahmed Osman
Ahmed Osman 2017-12-29
What if I want to plot it into a map with longitude and Latitude axes??

类别

Help CenterFile Exchange 中查找有关 Blue 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by