Experiment No: 09 The Continuous Time Fourier Transform

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

EXPERIMENT NO: 09

The Continuous Time Fourier Transform


Aim: Find the Fourier Transform of a continuous aperiodic signal and plot its magnitude
and phase spectrum.
Theory: Write about continuous time Fourier transform and Magnitude and Phase
spectrum.
Problem 1:
Write Scilab code to plot the magnitude and phase spectrum of the signal, x(t) =e
-at
u(t),
a>0
Program:
//Experiment 09
//Find the fourier Transform of a continuous aperiodic
signal and plot its
//Magnitude and phase spectrum.

//Problem 1
//Write MATLAB code to plot the magnitude and phase
spectrum of the signal
//x(t)=e^(-at) u(t), a>0

clc;
clear;
close;

t=0:0.01:10;

x=exp(-2*t);

w=-10:0.01:10; //omegha

for j=1:length(w)
Xjw(j)=(sum(x.*exp(-%i*w(j)*t)))*0.01;
end

//plot x(t)
subplot(131);
plot(t,x);
xtitle('x(t)=e^(-at) u(t), a>0','t','x(t)');

//plot magnitude spectrum
subplot(132);
plot(w,abs(Xjw));
xtitle('magnitude spectrum','frequency w','|X(jw)|');


//plot Phase spectrum
subplot(133);
plot(w,atan(imag(Xjw),real(Xjw)));
xtitle('Phase spectrum','frequency w','Phase(X(jw))');




Problem 2:
Write Scilab code to plot the magnitude and phase spectrum of the signal, x(t) =e
at
u(-t),
a>0

You might also like