quiver3 plot on a flat space (2D)

9 ビュー (過去 30 日間)
Hugo
Hugo 2011 年 9 月 19 日
回答済み: Notsure USA 2013 年 11 月 1 日
Hi, I need to plot a 3 components vector field V=(u(x,y),v(x,y),w(x,y)) (using quiver3 function) which, as you can see, doesn't depend on the z coordinate so I need to plot the latter on the plane z=0. How can I code this -- Thanks a lot by advance.

回答 (2 件)

the cyclist
the cyclist 2011 年 9 月 19 日
So you want every arrow to originate at the z=0 plane, but the vector can point in any direction? If so, here is an example, adapted from "help quiver3":
[x,y] = meshgrid(0:.5:2,-1:.2:1);
z = x .* exp(-x.^2 - y.^2);
[u,v,w] = surfnorm(x,y,z);
z = zeros(size(x));
quiver3(x,y,z,u,v,w);

Notsure USA
Notsure USA 2013 年 11 月 1 日
Just use quiver3() and then view(0,90) to look on from the top (projected into x,y-plane).

カテゴリ

Help Center および File ExchangeSurfaces, Volumes, and Polygons についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by