How to plot arrows on plot
조회 수: 60 (최근 30일)
이전 댓글 표시
I am trying to plot a phase portrait, and I want for clarity add arrows to these plots. What I want is not "quiver". I want something like the arrows in the image.
I have used, quite simply, a "plot" command solutions of ode45 to obtain the phase portrait.

Thank you in advance
댓글 수: 1
rekaia draoui
2020년 3월 18일
how did you manage to draw these arrows? would you please provide the script.
thank you in advance
답변 (1개)
Walter Roberson
2017년 5월 12일
The only built-in functions for drawing arrows are quiver(), quiver3(), and annotation(). annotation('arrow') is only for straight lines.
Your options would seem to be to either draw the arrow-heads yourself (perhaps using patch()), or else use annotation('arrow') with from a point to itself so that the shaft is non-existent.
댓글 수: 2
Megha
2019년 9월 11일
I would be glad to know, if there are any developments in matlab functions in this context?
Walter Roberson
2020년 3월 21일
No, there are no curved arrow functions from Mathworks.
You might want to look at the File Exchange for https://blogs.mathworks.com/pick/2012/08/03/3d-arrows/ arrow3() or arrow()
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!