Code covered by the BSD License
25 Feb 2004
23 Jun 2008)
arrowh draws a solid 2D arrow head into the current plot.
Watch this File
This little program allows you to draw a solid arrow head (a triangle) into the current plot to indicate a direction on a line.
I wrote this little program mainely for use in phase plane plots (screenshot), when you want to indicate what direction a trajectory is run throught.
The m-file contains a detailed help.
This file inspired Mimo Toolbox, Simple Pendulum, and Spring Pendulum.
@Miguel - sorry I can't. But it's quite easy, I just plotted the analytical solution of a 2D ODE with complex eigenvalues using initial conditions placed on a circle...
Could you please upload the code that you used to generate the phase portrait in your screenshot?
Easy instructions, works just fine.
Could do with some more information regarding its use.
it is useful
Great and useful. Nice work.
Matlab should include this useful function. Thanks!
good work !
nice little prog, was always looking for one doing just that.
does what it says.
minors changements in the file-description and the comments of the prog;
added the possibility to have several arrowheads drawn at once by giving a *vector* with the wanted locations for the LOCATION paramater
i forgot to remove a silly debugging line which kept the size-argument from being taken into account...
thanks to Jeroen Hogema who mailed me about this issue
Fix a bug pointed out by Kesh Ikum
Added functionality to change the width of the arrowhead, and fixed some mlint suggestions
1.13 - Allow for non-solid arrow heads
1.12 - Return handle(s) of created patches