필터 지우기
필터 지우기

Create a MAP with 3 column vectors.

조회 수: 6 (최근 30일)
Nathan Meissonnier
Nathan Meissonnier 2022년 6월 23일
댓글: Nathan Meissonnier 2022년 6월 29일
Hello !
I have 3 column vectors. I would like to create a MAP with the variations of z (one column) according to the values of x (another column) and y (another column). I already tried this but the problem is that my values are interpolated, I don't want my values to change.
x = matrix(:,1);
y = matrix(:,2);
z = matrix(:,3);
xi=linspace(min(x),max(x),30)
yi=linspace(min(y),max(y),30)
[XI YI]=meshgrid(xi,yi);
ZI = griddata(x,y,z,XI,YI);
contourf(XI,YI,ZI)
Thank you for your help !

답변 (1개)

Nitanshu
Nitanshu 2022년 6월 29일
Hi Nathan,
I am not sure what actually you need to achieve but still for creating container maps you can take the reference of this Matlab article on container maps.
Hope it helps!
  댓글 수: 1
Nathan Meissonnier
Nathan Meissonnier 2022년 6월 29일
Thank you for your answer ! i will try

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by