|
|
【答案】应助回帖
★ ★ ★ ★ ★ 感谢参与,应助指数 +1 下一站2007: 金币+5, ★★★很有帮助, 不是我想要的那种,但是依然很感谢! 2013-12-13 15:39:20
matlab也可以啊
给你个例子吧:
clc;cla;clear;
x1=0.5;
x2=x1;
y1=0.1:0.2:0.9;
y2=y1+y1*0.1;
len=y2-y1;
len=sqrt(len.*len);
colour=len./max(len);
for i=1:length(y1)
ah=annotation('arrow',[y1(i) y2(i)],[x1 x2],'Color',[0.5 colour(i) 1]);
end |
|