Quiver plot between 2 dots.

5 次查看(过去 30 天)
How to plot a quiver between
P1=[ 0.85 4.87]
P2=[ 0.88 4.88]
best regards

采纳的回答

Patrick Kalita
Patrick Kalita 2012-1-31
You simply need to compute the difference between the two vectors:
P1=[ 0.85 4.87]
P2=[ 0.88 4.88]
D = P2 - P1;
quiver( P1(1), P1(2), D(1), D(2), 0 )
The zero as the last argument to quiver tell is to not do automatic scaling. That way you see the arrow actually going between the two points.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by