Updated 3 May 2023
Erik Johnson (2023). arrow (https://www.mathworks.com/matlabcentral/fileexchange/278-arrow), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Plot Pressure Distribution (Cp) Over an Airfoil / Aerofoil ; Vector Plot ; Arrow Plot, draw, Phase Portrait Plotter on 2D phase plane, Semismooth* Newton method for contact friction problems, Evenly Spaced Streamlines, Random Boolean Network Toolbox, arrowflow, quiver2.m v1.2 (Nov 2009), displayQuatCurve, genStressStrainStates, The carpetplot class, Ogive optimization toolbox
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Forgot to update the version date.
Add ability to use arrow(...,'Parent',axis handle)
Change output from handle double to graphics objects. Add identifiers to warning and error messages. Temporarily disable pan/zoom/rotate3d to use click-to-draw mode.
Added a 'Color' property (that sets both 'EdgeColor' and 'FaceColor' for arrows drawn with patch objects [the default]) and documentation of how to use it.
Updated for HG2 (R2014b and later)
actually update the file (not just the description); correct view on demo
Replace "eval('trycmd','catchcmd')" with "try, trycmd; catch, catchcmd; end;", which break's compatibility with MATLAB 5 but improves compliance with newer versions.