如何设置图中特定数值为红色。
显示 更早的评论
程序如下
clc
clear
%%
a=[1,8,3,4,5;
3,5,8,8,10];
figure
h=imagesc(a);
colormap(gray)
效果如下:

我想把上图中为8的点设置为红色显示,其他均为灰度显示。有大佬懂吗?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!