Contour plot from data stored in four different array!
5 ビュー (過去 30 日間)
古いコメントを表示
How I can plot a contour/surface plot with data stored in four different arrays say x,y,z and n? Each array has same dimmension say 486 x 1. I have tried meshgrid and surf command in vain. Thanks in advance!
0 件のコメント
回答 (1 件)
KSSV
2017 年 8 月 5 日
x0=min(x);x1=max(x);
y0=min(y);y1=max(y);
N=100 ;
x=linspace(x0,x1,N);
y=linspace(y0,y1,N);
[X,Y]=meshgrid(x,y);
Z=griddata(x,y,z,X,Y);
surf(X,Y,Z)
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
