Académique Documents
Professionnel Documents
Culture Documents
The fast Fourier transform (FFT) is an efficient algorithm for computing the DFT of a sequence;
it is not a separate transform. It is particularly useful in areas such as signal and image
processing, where its uses range from filtering, convolution, and frequency analysis to power
spectrum estimation
For length N input vector x, the DFT is a length N vector X, with elements
N
X(k) = sum x(n)*exp(-j*2*pi*(k-1)*(n-1)/N), 1 <= k <= N.
n=1
The inverse DFT (computed by IFFT) is given by
N
x(n) = (1/N) sum X(k)*exp( j*2*pi*(k-1)*(n-1)/N), 1 <= n <= N.
k=1
PROCEDURE:-
1) Open MATLAB Open new M-file Type the program
2) Save in current directory
3) Compile and Run the program
4) For the output see command window\ Figure window
PROGRAM:-
%Fourier Transform%
clc clear all;
close all;
syms t;
x=exp(-2*t)*heaviside(t);
y=fourier(x);
disp('Fourier Transform of input signal');
y
z=ifourier(y);
disp('Inverse Fourier Transform of input signal'); z
mg=abs(y);
subplot(2,1,1);
ezplot(mg);
xlabel('time');
ylabel('amplitude');
title('magnitude spectrum of a input signal');
grid;
pha=atan(imag(y)/real(y));
subplot(2,1,2);
ezplot(pha);
xlabel('time');
ylabel('amplitude');
title('phasespectrum of a input signal');
grid;
OUTPUT:-
Fourier Transform
Fourier Transform of input signal
Y= 1/(2+w*i)
Inverse Fourier Transform of input signal
Z= Heaviside(x)/exp(2*x)
magnitude spectrum of a input signal
0.5
0.4
amplitude
0.3
0.2
-6 -4 -2 0 2 4 6
time
phasespectrum of a input signal
1
amplitude
-1
-6 -4 -2 0 2 4 6
time
RESULT:-
VIVA QUESTIONS:-
EXERCISE PROGRAMS
.
EXPERMENT NO:11
LAPLACE TRANSFORM
AIM: -
To perform waveform synthesis using Laplace Transforms of a given signal
SOFTWARE REQURIED:-
1.MATLAB R2010a.
2.Windows XP SP2.
THEORY:-
When one says "the Laplace transform" without qualification, the unilateral or one-sided
transform is normally intended. The Laplace transform can be alternatively defined as the
bilateral Laplace transform or two-sided Laplace transform by extending the limits of
integration to be the entire real axis. If that is done the common unilateral transform
simply becomes a special case of the bilateral transform where the definition of the
function being transformed is multiplied by the Heaviside step function.
The bilateral Laplace transform is defined as follows:
The inverse Laplace transform is given by the following complex integral, which is
known by various names (the Bromwich integral, the Fourier-Mellin integral, and
Mellin's inverse formula):
Example :
Let y(t)=exp(t). We have
The integral converges if s>1. The functions exp(t) and 1/(s-1) are partner functions.
PROCEDURE:-
Open MATLAB Open new M-file Type the
program
Save in current directory
Compile and Run the program
For the output see command window\ Figure window
PROGRAM:-
%Laplace Transform%
clc clear all;
close all;
syms t;
x=exp(-2*t)*heaviside(t);
y=laplace(x);
disp('Laplace Transform of input signal');
y
z=ilaplace(y);
disp('Inverse Laplace Transform of input signal');
z
OUTPUT:-
Laplace Transform
Laplace Transform of input signal
Y=
1/(s+2)
Inverse Laplace Transform of input signal
Z=
1/exp(2*t)
RESULT:-
Laplace and inverse laplace transforms were verified using MATLAB functions.
VIVA QUESTIONS:-
1.Define Laplace-Transform?
2. What is the Condition for Convergence of the L.T?
3. What is the Region of Convergence(ROC)?
4. State the Shifting property of L.T?
5. State convolution Property of L.T?
EXERCISE PROGRAMS
1.Write a MATLAB program to find the Laplace transform of a sinusoidal signals.
EXPERMENT NO:12
SOFTWARE REQURIED:-
1.MATLAB R2010a.
2.Windows XP SP2.
THEORY:-
A Transfer Function is the ratio of the output of a system to the input of a system,
in the Laplace domain considering its initial conditions to be zero. If we have an input
function of X(s), and an output function Y(s), we define the transfer function H(s) to be:
Unilateral Z-transform
Alternatively, in cases where x[n] is defined only for n ≥ 0, the single-sided or unilateral
Z-transform is defined as
In signal processing, this definition is used when the signal is causal.
RESULT:-
In this experiment the zeros and poles and plotting the pole zero maps in s-plane and z-plane
for the given transfer function using MATLAB.
VIVA QUESTIONS:-
1.Study the details of ztrans() and iztrans() functions?
2.What are poles and zeros?
3.How you specify the stability based on poles and zeros?
4.Define S-plane and Z-plane?
5.What is the difference b/w S-plane and Z-plane?
EXERCISE PROGRAMS
1.Write a MATLAB program to find the impulse response of the following difference equation
3y(n)-5y(n-1)+4y(n-2)=x(n)-2x(n-1).