Code covered by the BSD License  

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

5.0

5.0 | 1 rating Rate this file 25 Downloads (last 30 days) File Size: 2.54 KB File ID: #25372
image thumbnail

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

by Georg Stillfried

 

21 Sep 2009

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

The author wishes to acknowledge the following in the creation of this submission:
Arrow3 Version 5

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
12 Nov 2011 michael  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
arrow Georg Stillfried 21 Sep 2009 11:53:50
arrow3 Georg Stillfried 21 Sep 2009 11:53:50
3d Georg Stillfried 21 Sep 2009 11:53:50
arrowhead Georg Stillfried 21 Sep 2009 11:53:50
graphics Georg Stillfried 21 Sep 2009 11:53:50
annotation Georg Stillfried 21 Sep 2009 11:53:50
linewidth Georg Stillfried 21 Sep 2009 11:53:50
transparent Georg Stillfried 21 Sep 2009 11:53:50
patch Georg Stillfried 21 Sep 2009 11:53:50

Contact us at files@mathworks.com