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

246 ビュー (過去 30 日間)
A
A 2012 年 5 月 27 日
回答済み: Ahmed Osman 2017 年 12 月 29 日
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.
Xingyun Zhou
Xingyun Zhou 2016 年 11 月 22 日
Pretty Helpful!Thanks!

サインインしてコメントする。

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeBlue についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by