
求做matlab题求: 1利用plot函数在区间[0,4π]同时绘制y1=exp(-0.1*t).*sin(t)和y2= exp(-0.1*t)的图形。
展开全部
t=0:0.01:4*pi;
y1=exp(-0.1*t).*sin(t);
y2=exp(-0.1*t);
plot(t,y1,'r',t,y2,'b');
grid
title('衰减振荡波形')
legend('y1=exp(-0.1*t).*sin(t)','y2=exp(-0.1*t)')
y1=exp(-0.1*t).*sin(t);
y2=exp(-0.1*t);
plot(t,y1,'r',t,y2,'b');
grid
title('衰减振荡波形')
legend('y1=exp(-0.1*t).*sin(t)','y2=exp(-0.1*t)')
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询