arrow - % % % % % % % % % % % % % % % % % % % % % % % % % %...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
% arrow() - Draw a line with an arrowhead. % % Usage: % >> arrow('Property1',PropVal1,'Property2',PropVal2,. ..) % >> arrow(H,'Prop1',PropVal1,. ..) % >> arrow(Start,Stop) % >> arrow(Start,Stop,Length,BaseAngle,TipAngle,Width,Page,CrossDir) % >> arrow demo %2-D demos of the capabilities of arrow() % >> arrow demo2 %3-D demos of the capabilities of arrow() % % Inputs: % H - vector of handles to previously created arrows and/or % line objects, will update the previously-created % arrows according to the current view and any specified % properties, and will convert two-point line objects to % corresponding arrows. Note that arrow(H) will update the % arrows if the current view has changed. % Start - vectors of length 2 or 3, or matrices with 2 or 3 columns % Stop - same as Start % 'Start' - The starting points. B % 'Stop' - The end points. /|\ ^ % 'Length' - Length of the arrowhead in pixels. /|||\ | % 'BaseAngle' - Base angle in degrees (ADE). //|||\\ L| % 'TipAngle' - Tip angle in degrees (ABC). ///|||\\\ e| % 'Width' - Width of the base in pixels. ////|||\\\\ n| % 'Page' - Use hardcopy proportions. /////|D|\\\\\ g| % 'CrossDir' - Vector || to arrowhead plane. //// ||| \\\\ t| % 'NormalDir' - Vector out of arrowhead plane. /// ||| \\\ h| % 'Ends' - Which end has an arrowhead. //<----->|| \\ | % 'ObjectHandles' - Vector of handles to update. / base ||| \ V % 'LineStyle' - The linestyle of the arrow. E angle||<-------->C % 'LineWidth' - Line thicknesses. |||tipangle % 'FaceColor' - FaceColor of patch arrows. ||| % 'EdgeColor' - EdgeColor/Color of patch/line arrows. ||| % 'Color' - Set FaceColor & EdgeColor properties. -->|A|<-- width % % Notes: % A property list can follow any specified normal argument list, e.g., % ARROW([1 2 3],[0 0 0],36,'BaseAngle',60) creates an arrow from (1,2,3) to % the origin, with an arrowhead of length 36 pixels and 60-degree base angle. % % The basic arguments or properties can generally be vectorized to create % multiple arrows with the same call. This is done by passing a property % with one row per arrow, or, if all arrows are to have the same property % value, just one row may be specified. % % You may want to execute AXIS(AXIS) before calling ARROW so it doesn't change % the axes on you; ARROW determines the sizes of arrow components BEFORE the % arrow is plotted, so if ARROW changes axis limits, arrows may be malformed. % % ARROW uses features of Matlab 4.2c and later, so earlier versions may be % incompatible; call ARROW VERSION for more details. % % Author: Erik A. Johnson <[email protected]>, 1995 % Copyright (c)1995, Erik A. Johnson <[email protected]>, 10/6/95 % Many thanks to Keith Rogers <[email protected]> for his many excellent
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
% suggestions and beta testing. Check out his shareware package MATDRAW. % He has permission to distribute ARROW with MATDRAW.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/03/2010 for the course ENG 990192 taught by Professor Lagestrom during the Spring '10 term at UC Davis.

Page1 / 24

arrow - % % % % % % % % % % % % % % % % % % % % % % % % % %...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online