You are on page 1of 1

MATLAB Solution

subplot(2,2,3);

% Script file: exponentials

plot(t, ft3);

t = -3:.1:3;

axis([-3 3 -.5 5]);

ft1 = 4*exp(-t./2);

title(f3(t) =4*exp(-t/2)*u(t) vs. t);

ft2 = 4*exp(t./2);

xlabel(t (time))

ut _ 1 = [zeros(1,30) ones(1,31)]; %
step with 61 elements

ylabel(Amplitude[f3(t)]);

ft3 = ft1.*ut _ 1;
subplot(2,2,1);
plot(t, ft1);
axis([-3 3 -.5 18]);xlabel(t (time))
title(f1(t)=4*exp(-t/2) vs. t);
ylabel(Amplitude [f1(t)])
subplot(2,2,2);
plot(t, ft2); xlabel(t (time))
axis([-3 3 0 20]);
title(f2(t) = 4*exp(t/2) vs. t);
ylabel(Amplitude [f2(t)]);

subplot(2,2,4);
ft4 =-1.*ft2.*ut _ 1;
plot(t, ft4);
axis([-3 3 -20 1]);
title(f4(t) = -4*exp(-t/2)*u(t) vs. t)
xlabel(t (time));
ylabel(Amplitude[f4(t)]);

You might also like