Create a MAP with 3 column vectors.
5 ビュー (過去 30 日間)
古いコメントを表示
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 !
0 件のコメント
回答 (1 件)
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!
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!