how to display elements of a 2D matrix as color-coded squares
177 次查看(过去 30 天)
显示 更早的评论
like for a 16x16 matrix:
0 个评论
采纳的回答
bym
2012-5-27
imagesc(your_matrix)
2 个评论
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
2017-12-29
What if I want to plot it into a map with longitude and Latitude axes??
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!