Plot X,Y 2D and Z where Z containing color intensity

120 ビュー (過去 30 日間)
shubham kumar gupta
shubham kumar gupta 2021 年 5 月 17 日
コメント済み: Adam Danz 2021 年 5 月 18 日
I have 3 , 100x1 array
X=100x1 all points on X axis
Y=100x1 all points on Y axis
Z=100x1 ranging from [0 to 1] denoting color intensity
how to pot 2d image X,Y and use Z as colormap for each points?

採用された回答

Adam Danz
Adam Danz 2021 年 5 月 17 日
See scatter(x,y,sz,c) or scatter(x,y,sz,c,'filled')
where c are your z values.
  11 件のコメント
shubham kumar gupta
shubham kumar gupta 2021 年 5 月 18 日
using scatter sz=1 and 'filled' and
set(gca,'color',[0 0 0.6]) //blue background
turned to be exact same
thank you
Adam Danz
Adam Danz 2021 年 5 月 18 日
My guess is that the imagesc plot is very close and just needs adjustments with axis limts and clim. But I can't be more specific without having the data and being able to reproduce the plot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by