to give specific colors to certain values in imagesc plots

1 回表示 (過去 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 Center および File ExchangeOrange についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by