Arrow3

Draws lines with directional arrowheads.
24.8K Downloads
Updated 8 Aug 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

ARROW3(P1,P2) draws lines from P1 to P2 with directional arrowheads. P1 and P2 are either nx2 or nx3 matrices. Each row of P1 is an initial point, and each row of P2 is a terminal point.

ARROW3(P1,P2,S,W,H,IP,ALPHA,BETA) can be used to specify properties of the line, initial point marker, and arrowhead. Type "help arrow3" at the command prompt for more information

What's new in Version 5:

All arrowhead and initial point marker sizes (W, H, and IP) are relative to the PlotBox diagonal.

Version 5 attempts to preserve the appearance of existing axes. In particular, ARROW3 will not change XYZLim, View, or CameraViewAngle. ARROW3 does not, however, support stretch-to-fill scaling. If a particular aspect ratio or variable limit is required, use DASPECT, PBASPECT, AXIS, or XYZLIM commands before calling ARROW3. Users are encouraged to report problems directly to the author.

Cite As

Tom Davis (2024). Arrow3 (https://www.mathworks.com/matlabcentral/fileexchange/14056-arrow3), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
5.18.1

address ColorOrder, LineStyleOrder property changes in R2019b

5.18

remove deprecated zbuffer renderer

5.17.1

interim fix for 2019b ColorOrder issues; more to follow

5.17

do not restore preexisting ColorOrder property

5.16

use explicit EdgeColor

1.15.0.0

use appdata instead of userdata

1.14.0.0

use appdata instead of userdata

1.10.0.0

corrected DOCTYPE

1.9.0.0

improved html appearance in File Exchange viewer

1.8.0.0

updated html files and added animation example

1.3.0.0

updated html files and added animation example

1.2.0.0

corrected spelling errors

1.0.0.0

revised html files