Plot 2D/3D Vector with Arrow

版本 1.0.0.0 (775 字节) 作者: Rentian Xiong
This function plots a line vector with arrow head.
42.6K 次下载
更新 2005/4/20

无许可证

Arrowline 3-D vector plot.

vectarrow(p0,p1) plots a line vector with arrow pointing from point p0 to point p1. The function can plot both 2D and 3D vector with arrow depending on the dimension of the input

Example:
For 3D vector
p0 = [1 2 3];
p1 = [4 5 6];
vectarrow(p0,p1)

For 2D vector
p0 = [1 2];
p1 = [4 5];
vectarrow(p0,p1)

引用格式

Rentian Xiong (2026). Plot 2D/3D Vector with Arrow (https://ww2.mathworks.cn/matlabcentral/fileexchange/7470-plot-2d-3d-vector-with-arrow), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Vector Fields 的更多信息
版本 已发布 发行说明
1.0.0.0