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

조회 수: 59 (최근 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 CenterFile Exchange에서 Orange에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by