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

조회 수: 283 (최근 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 CenterFile Exchange에서 Blue에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by