How to plot arrows on plot

60 vues (au cours des 30 derniers jours)
Erik Jansson
Erik Jansson le 12 Mai 2017
Commenté : Walter Roberson le 21 Mar 2020
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 commentaire
rekaia draoui
rekaia draoui le 18 Mar 2020
how did you manage to draw these arrows? would you please provide the script.
thank you in advance

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 12 Mai 2017
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 commentaires
Megha
Megha le 11 Sep 2019
I would be glad to know, if there are any developments in matlab functions in this context?
Walter Roberson
Walter Roberson le 21 Mar 2020
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()

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by