Quiver plot between 2 dots.

14 vues (au cours des 30 derniers jours)
Rafael Freire
Rafael Freire le 31 Jan 2012
How to plot a quiver between
P1=[ 0.85 4.87]
P2=[ 0.88 4.88]
best regards

Réponse acceptée

Patrick Kalita
Patrick Kalita le 31 Jan 2012
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.

Plus de réponses (0)

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by