2D contourplots of a 3D function
2 ビュー (過去 30 日間)
古いコメントを表示
I have a 3D matrix; corresponding to values of function f in space. I would like to display 2D contourplots of f at certain planes(x=x0 or y=y0 or z=z0); and I need the contour plane(cross section) to appear at the right location in 3D space; for example: for a plot at z=1:
what's the best way to do this in matlab? I would like something that works similar to quiver3:
[X Y Z]=meshgrid(-6:1:6,-6:1:6,1);
quiver3(X,Y,Z,fx,fy,fz))
except for scalar f.
I tried surf; it only worked for Z=Z0 planes
0 件のコメント
採用された回答
Patrick Kalita
2012 年 4 月 11 日
3 件のコメント
Walter Roberson
2012 年 4 月 11 日
Yes, have a look at datacursormode() . You customize the callback function to present whatever information you want.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!