to give specific colors to certain values in imagesc plots

조회 수: 3 (최근 30일)
seema niran
seema niran 2017년 1월 28일
답변: Image Analyst 2017년 1월 28일
sir, i have a 8*24 matrix. some values are nan and some values are 0. can i set specific colors to nan and 0 values in the image plot of the matrix.

답변 (1개)

Image Analyst
Image Analyst 2017년 1월 28일
I don't know about Nans, but for zeros, definitely yes. Check out the colormap() and caxis() functions.

카테고리

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