figure;
hold on;
for i=1:30
plot(x(i,:),y(i,:));
end
x=1:0.2:(2*pi);
hold on
for i=1:9
y=sin(x+i*pi/10)+exp(x/5);
plot(x,y,'.-','Color',[(0.7+0.1/i)^2 1-(0.1*i) 0.5/i^2],'LineWidth',2+0.5*i);
str{i}=['H=',mat2str(i*0.01)];
end
legend(str)
hold off
figure;
hold on;
for i=1:30
plot(x(i,:),y(i,:));
end
x=1:0.2:(2*pi);
hold on
for i=1:9
y=sin(x+i*pi/10)+exp(x/5);
plot(x,y,'.-','Color',[(0.7+0.1/i)^2 1-(0.1*i) 0.5/i^2],'LineWidth',2+0.5*i);
str{i}=['H=',mat2str(i*0.01)];
end
legend(str)
hold off
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M