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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!