plotting griddata
古いコメントを表示
Hey All, I was wondering if there was a way to modify the griddata program to include plotting. Given that I am using data points I know I will have to use meshgrid and was trying to figure out how it would be possible to include into the program. Any ideas? Mel
3 件のコメント
Walter Roberson
2011 年 5 月 25 日
Why not just call meshgrid() after the griddata() call, as shown in the example in the documentation ?
Matt Fig
2011 年 5 月 25 日
I think you mean MESH, not MESHGRID.
Melissa
2011 年 5 月 25 日
採用された回答
その他の回答 (1 件)
Walter Roberson
2011 年 5 月 25 日
[X,Y] = meshgrid(xi,yi);
Z = griddata(x,y,z,X,Y);
mesh(X,Y,Z), hold
plot3(x,y,z,'o'), hold off
2 件のコメント
Melissa
2011 年 5 月 25 日
Walter Roberson
2011 年 5 月 25 日
Perhaps we are misunderstanding each other, but there is no reason why the code I show above would not work in a script or function, including a callback function.
At most it might be necessary to be more careful about which axes to plot on to.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!