(4) <1>
>> t=0:0.01:4; >> x1=-t+4;
>> x2=sin(2*pi*t); >> x3=x1+x2; >> plot(t,x3); >> grid on; >> xlabel('t'); >> title('x3(t)');
<2>
>> t=0:0.01:4; >> x1=-t+4;
>> x2=sin(2*pi*t); >> x4=x1.*x2; >> plot(t,x4); >> grid on; >> xlabel('t'); >> title('x4(t)');
<3>
>> t=0:0.01:4; >> x1=-t+4;
>> x2=sin(2*pi*t); >> t3=-t; >> x3=-t3+4; >> x5=x1+x3; >> plot(t,x5); >> grid on >> xlabel('t'); >> title('x5(t)');
<4>
>> t=0:0.01:4; >> x1=-t+4;
>> x2=sin(2*pi*t); >> t3=t-1;
>> x3=sin(2*pi*t3); >> x6=x2.*x3; >> plot(t,x6); >> grid on; >> xlabel('t'); >> title('x6(t)');
相关推荐: