arrowflow

Plot L-shaped arrows of motion for phase diagram. Manually select 4 directions.

您现在正在关注此提交

Usage:
arrowflow(x,y,sx,sy,r);
Input:
x,y : initial position coordinates
default is 0,0
sx,sy : scaling of arrows along x and y coordinates
as a percentage of axis length, e.g. 10%
default is 10,10
r : angle of rotation
r=1 --> East-North
r=2 --> North-West
r=3 --> West-South
r=4 --> South-East
default is 1

Output:
h : handles of plot of the arrows
Example:
figure;
plot(0:0,1:1);
plot(0:1,1:0);
arrowflow(1/3,2/3,0,0,1);
arrowflow(2/3,2/3,0,0,3);

Issues:
To keep arrows of same length requires:axis square;

引用格式

Patrick Toche (2026). arrowflow (https://ww2.mathworks.cn/matlabcentral/fileexchange/23903-arrowflow), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: arrow

类别

Help CenterMATLAB Answers 中查找有关 Polar Plots 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

BSD