2D Progressive Vector Diagram
by Isaac Mancero Mosquera
24 Nov 2009
(Updated 13 Jun 2011)
Sequential Vector plot. Vector components x, y are required. User can define the initial position.
|
Watch this File
|
| File Information |
| Description |
Script originally intended for use in oceanography/fluid dynamics. Use:
>> ipdv(X,Y) % (0,0) default initial position
or
>> ipdv(X,Y,Xo,Yo) % (Xo,Yo) initial position
2D vector components (X,Y) are used to plot the vectors one after another, i.e., next vector starting at the end of the previous one (via Matlab's quiver.m ).
This function handles NANs (Not-A-Number) by putting Zeros in their place, thus allowing the Matlab cumsum.m function to compute the progressive positions (Matlab function cumsum.m doesn't skip Nans). NaNs produce discontinuities in the graphic. |
| 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.
|
| Updates |
| 13 Jun 2011 |
June 2011: I've modified the help inside the routine, and also put an explanation inside the graphic here. |
|
Contact us