t=0:0.1:5;
plot(t,2.*cos(2.*pi.*t));
grid;
plot(t,4.*cos(2.*pi.*t+pi./3));
grid;
plot(t,(4.*cos(2.*pi.*t+pi./3)+2.*cos(2.*pi.*t)));
grid;
迈特莱博
(4)>> syms t;
>> f=cos(pi*t)*[heaviside(t-1)-heaviside(t-2)];
>> ezplot(f)
(5)>> syms t;
>> f=exp(-t)*heaviside(cos(t));
>> ezplot(f)