to give specific colors to certain values in imagesc plots
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Image Analyst
2017-1-28
I don't know about Nans, but for zeros, definitely yes. Check out the colormap() and caxis() functions.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Orange 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!