Be the first to rate this file! 11 downloads (last 30 days) File Size: 3.4 KB File ID: #23903

arrowflow

by Patrick Toche

 

26 Apr 2009

No BSD License  

Plot L-shaped arrows of motion for phase diagram. Manually select 4 directions.

Download Now | Watch this File

File Information
Description

 Usage:
                  arrowflow(x,y,sx,sy,r);

 Input:
                  x,y : initial position coordinates
                    default is 0,0
                  sx,sy : scaling of arrows along x and y coordinates
                    as a percentage of axis length, e.g. 10%
                    default is 10,10
                  r : angle of rotation
                    r=1 --> East-North
                    r=2 --> North-West
                    r=3 --> West-South
                    r=4 --> South-East
                    default is 1

 Output:
                  h : handles of plot of the arrows
 Example:
                  figure;
                  plot(0:0,1:1);
                  plot(0:1,1:0);
                  arrowflow(1/3,2/3,0,0,1);
                  arrowflow(2/3,2/3,0,0,3);

 Issues:
                  To keep arrows of same length requires:axis square;

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
arrow.m

MATLAB release MATLAB 7.6 (R2008a)
Other requirements arrow.m, created by Erik A. Johnson, version of 11/15/02
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
phase diagrams Patrick Toche 27 Apr 2009 11:05:35
arrows Patrick Toche 27 Apr 2009 11:05:35
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com