View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
mArrow3.m - easy-to-use 3D arrow

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0
5.0 | 8 ratings Rate this file 63 Downloads (last 30 days) File Size: 2.54 KB File ID: #25372 Version: 1.0
image thumbnail

mArrow3.m - easy-to-use 3D arrow

by

 

Draw a 3D arrow. Easily specify size, color and even transparency.

| Watch this File

File Information
Description

This function draws a 3D arrow using a cylinder and cone patch. This allows the use of all patch properties including transparency. It can be used with default parameters (example 1) or user-defined parameters (example 2).

example 1:
> mArrow3([0 0 0],[1 1 1]);
    % draws a black arrow from point [0 0 0] to point [1 1 1]

example 2:
> h = mArrow3([0 0 0],[1 1 1], 'facealpha', 0.5, 'color', 'red', 'stemWidth', 0.02);
     % draws a semitransparent red arrow with a stem width of 0.02 units from point [0 0 0] to point [1 1 1]; h is the handle to the patch object

Acknowledgements

Arrow3 Version 5 inspired this file.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
28 Jul 2016 Bahareh Ghotbi  
03 May 2016 Karl M

Karl M (view profile)

 
13 Mar 2016 Matteo Costarelli  
07 Mar 2016 Pedro Busc

Perfect!!

Comment only
07 Mar 2016 Pedro Busc

Perfect!!

07 Mar 2016 he

he (view profile)

suitable for plotting the coordinate axes

01 Dec 2015 Zeng Zhen

good program for arrows plot.

30 May 2012 Felix

Felix (view profile)

Sounds good, but not working on R2011b (7.13.0.564). No arrow, no error message.

Comment only
02 Mar 2012 Przemyslaw Baranski

Very good!

12 Nov 2011 michael  

Contact us