Plot 2D/3D Vector with Arrow

This function plots a line vector with arrow head.

現在この提出コンテンツをフォロー中です。

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://jp.mathworks.com/matlabcentral/fileexchange/7470-plot-2d-3d-vector-with-arrow), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersVector Fields についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0