What does u and v represent in a quiver plot?

17 ビュー (過去 30 日間)
Eric Snyder
Eric Snyder 2017 年 5 月 3 日
コメント済み: dpb 2017 年 5 月 6 日
I am confused regarding what u and v represent in a quiver plot. Let's make a real simple example.
x =[1];
y =[1];
My data point ends up moving from 1,1 to 3,3.
x2 =[3];
y2 =[3];
I use 3,3 for the u and v and it seems to plot an arrow that is pointing in the right direction.
My issue is I don't understand what u and v actually are. Is that starting and ending location like my example above? I have searched and find a lot of "u" and "v" used as notation but the "help quiver" does not seem (unless I messed it) to explain exactly what u and v are.

採用された回答

Star Strider
Star Strider 2017 年 5 月 3 日
The (u,v) arguments are the derivatives of the plotted curve in the (x,y) directions, respectively. The easiest way to calculate them is to use the gradient function on each (x,y) vector, if you do not already have them from your data.
  2 件のコメント
Eric Snyder
Eric Snyder 2017 年 5 月 6 日
Perfect. That was really helpful.
Star Strider
Star Strider 2017 年 5 月 6 日
Thank you.
My pleasure.

サインインしてコメントする。

その他の回答 (1 件)

dpb
dpb 2017 年 5 月 3 日
"A quiver plot displays velocity vectors as arrows with components (u,v) at the points (x,y)."
The (u,v) are the x- and y- components of the variable (often velocity; can be any directed quantity, of course, depending on the problem space) at the location in (x,y).
See the first example that should make that clear...
  2 件のコメント
Eric Snyder
Eric Snyder 2017 年 5 月 6 日
Yeah... I saw the first example before I posted. It was still not clear. The first example makes the mechanics clear but to me... not the concepts.
dpb
dpb 2017 年 5 月 6 日
Oh. Well, my bad, then. I thought the cos(),sin() made it pretty clear. commonly it is the gradient of the field itself but one might want to associate another variable at the point so it isn't necessarily so.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by