DIRECTEDPLOT

plot_dir improved and extended to handle matrices.

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

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 (2026). DIRECTEDPLOT (https://jp.mathworks.com/matlabcentral/fileexchange/6510-directedplot), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Plot With Direction

カテゴリ

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

一般的な情報

MATLAB リリースの互換性

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

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

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