2D Progressive Vector Diagram

Sequential Vector plot. Vector components x, y are required. User can define the initial position.
1.7K 次下载
更新时间 2011/6/13

查看许可证

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.

引用格式

Isaac Mancero Mosquera (2025). 2D Progressive Vector Diagram (https://www.mathworks.com/matlabcentral/fileexchange/25940-2d-progressive-vector-diagram), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

June 2011: I've modified the help inside the routine, and also put an explanation inside the graphic here.

1.0.0.0