No BSD License  

Highlights from
DIRECTEDPLOT

5.0

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.12 KB File ID: #6510

DIRECTEDPLOT

by Mukhtar Ullah

 

08 Dec 2004 (Updated 14 Dec 2004)

plot_dir improved and extended to handle matrices.

| Watch this File

File Information
Description

DIRECTEDPLOT Plot with directions

DIRECTEDPLOT(X,Y) plots vector Y versus vector X, with arrows on alternative points. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix,whichever line up.

DIRECTEDPLOT(X,Y,N) places arrows on each N-th point, starting from the first.

DIRECTEDPLOT(X,Y,N,LINESPEC) uses the plot linestyle specified for the plots and the arrows. See PLOT for other possibilities.

[H1,H2] = DIRECTEDPLOT(...) also returns the handles for the plot and the arrows

Example:
x = linspace(0,2*pi,10)';
y = [cos(x) sin(x)];
[h1,h2] = directedplot(x,y);
axis equal

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Plot With Direction

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
23 Mar 2006 Vassili Pastushenko

The wings of the arrows are asymmetrical at inclined parts of a curve, this should be corrected. Also, arrow size should be user-defined, a corresponding option in input is necessary.

19 Jan 2012 bill  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Mukhtar Ullah 22 Oct 2008 07:37:42
plotting Mukhtar Ullah 22 Oct 2008 07:37:42
plot Mukhtar Ullah 22 Oct 2008 07:37:42
quiver Mukhtar Ullah 22 Oct 2008 07:37:42
arrow Mukhtar Ullah 22 Oct 2008 07:37:42
direction Mukhtar Ullah 22 Oct 2008 07:37:42
graphics Mukhtar Ullah 22 Oct 2008 07:37:42

Contact us at files@mathworks.com