I wonder if there is a smart way to draw an ARROW from one point to another
in Matlab (a command like LINE, or something similar) to represent a vector.
Thank you in advance
> I wonder if there is a smart way to draw an ARROW from one point to another
> in Matlab (a command like LINE, or something similar) to represent a vector.
Since v 4 there has been an ARROW() command in the user contributed
library. At its minimum you specify the start and stop points (as opposed
to vectors of x and y coordinates), but you can also specify the arrow
head shape and other properties. I believe the more recent figure edit
package includes an arrow command, but I have not used it.
Paul
And with some research you may find that the appropriate function is
ARROWLINE. Which however is undocumented :(. The syntax seems to be
something like:
arrowline([x_start,x_end],[y_start,y_end])
Such in case you want to draw arrow from script/function...
P.S. It isn't hard to make your own function that draw's an
arrow. There might be some good reasons why ARROWLINE is undocumented,
I've never used it, so I don't know.
--
Perttu Ranta-aho | Perttu.R...@uku.fi
Department of Applied Physics | http://venda.uku.fi
University of Kuopio, Finland | http://www.uku.fi
There is currently no documented way to add an arrow from the command line.
This will be added to the next release. The undocumented arrow object is
ARROWLINE, but there is no good way that I am aware of to create one from
the command line. 'arrowline([x_start,x_end],[y_start,y_end])', will not
work.
Sorry,
Glen DeLoid
The Mathworks
"schedar" <sch...@wanadoo.es> wrote in message
news:9p83q5$5ei$1...@news.wanadoo.es...