FTIntroPlots.m

omega = -5:.01:5;
a = 2;
x = 1./(j*omega + a);
subplot(2,1,1)
plot(omega, real(x), 'r-', 'linewidth', 3)
xlabel('omega')
ylabel('Re[X(omega)]')
subplot(2,1,2)
plot(omega, imag(x), 'g-', 'linewidth', 3)
xlabel('omega')
ylabel('Im[X(omega)]')

figure(2)
subplot(2,1,1)
plot(omega, abs(x), 'r-', 'linewidth', 3)
xlabel('omega')
ylabel('|X(omega)|')
subplot(2,1,2)
plot(omega, angle(x), 'g-', 'linewidth', 3)
xlabel('omega')
ylabel('<X(omega)')

ċ
FTIntroPlots.m
(0k)
Darryl Morrell,
May 9, 2012, 9:37 PM
Comments