DIRECTEDPLOT

版本 1.0.0.0 (708 字节) 作者: Mukhtar Ullah
plot_dir improved and extended to handle matrices.
2.6K 次下载
更新时间 2004/12/14

无许可证

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

引用格式

Mukhtar Ullah (2024). DIRECTEDPLOT (https://www.mathworks.com/matlabcentral/fileexchange/6510-directedplot), MATLAB Central File Exchange. 检索来源 .

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

参考作品: Plot With Direction

Community Treasure Hunt

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

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