How to plot arrows on plot

60 次查看(过去 30 天)
Erik Jansson
Erik Jansson 2017-5-12
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
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
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
Megha 2019-9-11
I would be glad to know, if there are any developments in matlab functions in this context?
Walter Roberson
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 CenterFile 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!

Translated by