DRAWARROW Draw an arrow on the current axis. drawArrow(x1, y1, x2, y2) draws an arrow between the points (x1 y1) and (x2 y2). drawArrow([x1 y1 x2 y2]) gives argument as a single array. drawArrow(..., L, W) specifies length and width of the arrow. drawArrow(..., L, W, TYPE) also specifies arrow type. TYPE can be one of the following : 0: draw only two strokes 1: fill a triangle .5: draw a half arrow (try it to see ...) Arguments can be single values or array of size N-by-1. In this case, the function draws multiple arrows. H = drawArrow(...) return handle(s) to created arrow elements. The handles are returned in a structure with the fields 'body', 'wing' and 'head' containing the handles to the different parts of the arrow(s). Example t = linspace(0, 2*pi, 200); figure; hold on; plot(t, sin(t)); drawArrow([2 -1 pi 0], .1, .05, .5) See also drawEdge
Package: matgeom