How to eliminate points with highest intensity in a color plot?

1 回表示 (過去 30 日間)
Alberto Paniate
Alberto Paniate 2020 年 5 月 16 日
コメント済み: darova 2020 年 5 月 16 日
Hi, I have a matrix that I visualize with a color plot. But there are points with very high intensity that don't allow me to visualize it properly. Do you know how can I eliminate these points?
I visualize the matrix with:
figure,imagesc(C(:,:))
  1 件のコメント
darova
darova 2020 年 5 月 16 日
YOu can set color axis limits with caxis
caxis([0 10])

サインインしてコメントする。

回答 (1 件)

Mehmed Saad
Mehmed Saad 2020 年 5 月 16 日
Instead of removing those points you can change Clim property of imagesc
For example
C = rand(40,40);
C(5,5) = 25;
figure,imagesc(C)
Now change the Clim
set(gca,'Clim',[0 1])

Community Treasure Hunt

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

Start Hunting!

Translated by