📄 arrow.m
字号:
function h = arrow(x, y, s, style)%ARROW Use arrows to plot curves.% LINE_HANDLE = ARROW(X, Y, S, STYLE)% S (0.2 by default) is the scale of the arrow head;% STYLE ('-' by default) is the line style of the arrow;% LINE_HANDLE is the handle of the arrow.% J.-S. Roger Jang, 1993if nargin <= 2, s = 0.2; endif nargin <= 3, style = '-'; endxx = [0 1 1-s 1 1-s].';yy = [0 0 s/2 0 -s/2].';arrow = xx + yy.*sqrt(-1);x=x(:);y=y(:);z = x + y*sqrt(-1);a = arrow*diff(z).'+ones(5,1)*z(1:length(z)-1).';h = plot(real(a), imag(a), style);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -