Matlab如何画双纵坐标图

来源:学生学帮网 编辑:学帮网 时间:2024/06/04 05:50:55

Matlab如何画双纵坐标图

>> x = 0:0.01:20;

>>y1 = 200*exp(-0.05*x).*sin(x);

>>y2 = 0.8*exp(-0.5*x).*sin(10*x);

>>figure % new figure

>>plotyy(x,y1,x,y2);