Digital Signal Processing Assignment # 4 THEME: The Discrete Fourier Transform (DFT
Digital Signal Processing Assignment # 4 THEME: The Discrete Fourier Transform (DFT
Assignment # 4
THEME: The Discrete Fourier Transform (DFT
Assignment # 4
THEME: The Discrete Fourier Transform (DFT)
Introduction:
This assignment we work on the introduction of the Discrete Fourier Transform (DFT) and points out the
mathematical elements that will be explicated in this book. To find motivation for a detailed study of the DFT,
the reader might first peruse Chapter 8 to get a feeling for some of the many practical applications of the DFT.
Also, In DSP, we can compute the spectrum only at specific discrete values of ω, any signal in any DSP
application can be measured only in a finite number of points. The Discrete Fourier Transform (DFT) is the
equivalent of the continuous Fourier Transform for signals known only at instants separated by sample times.
Block diagram:
Block diagram of the overlap add method
The code is partitioned into three sections, first the progression succession work given by the educator
is utilized to produce the info arrangement. After that I utilized the capacity to create the channel yield
for the moving normal channel. The capacity is given beneath, and the Moving Average Filter Function
Code is appearing in the reference section.
MATLAB CODE:
function Out = movavgFilt (In, Len, Param)
% The moving average filter operates by averaging a number of points from the
% input signal to produce each point in the output signal. In equation form,
% this is written:
%
% 1 M-1
% Y[i] = --- SUM X[i + j]
% M j=0
Siz = size (In);
Siz_In = Siz (1, 2);
end
%%%%%%%%%%sequence genration%%%%%%%%
n=0:1:999;
x=(0.5.^n).*stepseq(0,0,999);
%%%%%%%%%%Noise Addition%%%%%%%%%%
awgn=-1 + (1+1)*rand(1,1000);
x1=x+awgn;
%%%%%%%%%% Moving AVG filter
In = x1; % input to the filter
Param = 'Right'; % Movement of the Filter
Len = 10; % Legth of the Filter
figure(3);stem(n,Out);title('Input seq with noise after being passed through the filter');xlabel('sample');ylabel('amplitude');grid on
Simulation Result:
It show how all what we anticipated consequences of this task.
Input Sequence
We could have anticipated that the DFT should give a result at only the quantized frequencies either side of the
genuine recurrence. This positively occurs however we likewise track down non-no results at any remaining
frequencies. This spreading impact, which is known as spillage, emerges because we are really computing the
Fourier series for the waveform in Figure4, which has significant discontinuities, subsequently other recurrence
parts.
Output after multiplying H and X (FFT’s of input and filter response) IFFT is performed after multiplying the
signals.
Discussion:
Above all else, the info signal is created utilizing the "means" work, after that clamor is produced involving the
condition for the stretch [-a, b] "awgn= - b + (b + a) * rand (1, N)". The commotion is then added to the sign to
get the sign that will be separated, a moving normal channel of length M=10 is made the capacity given in the
code. The information signal is sifted by going through the channel. Moreover, to accomplish direct
convolution we need to utilize the accompanying condition.
Both the channel result and clamor added input signal a both took care of into a Fast Fourier change of 128
places, then both the signs are duplicated as in recurrence space to perform convolution we just perform
augmentation of the Fourier changes of the drive reaction and the information signal. To accomplish direct
convolution utilizing cross-over add technique an Inverse Fourier Transform to get the last result of the sign.
The reproduction figures show the different periods of the sign as it advances through various squares it tends
to be seen that the info signal is exceptionally mutilated after the expansion of the commotion and smoothing
impact should be visible after filtration the FFT activity Di spreads the sign to 128 places and after the
convolution is played out the IDFT returns the sign to time-space from the recurrence area.
Block diagram:
Block diagram
MATLAB CODE:
clear; clc
n=0:299;
x1 = x_par(1:100);
x2 = x_par(6:2:204);
x = x1 + 1j*x2;
N = 128;
X = fft(x,N);
X_flip = fliplr(X(2:N));
X1 = 0.5*(X + X_conj);
X2 = (1/2/1j)*(X - X_conj);
x1_rec = real(ifft(X1));
x2_rec = real(ifft(X2));
n = 1:100;
figure(1); clf
subplot(211), stem(n,x1_rec(1:100),'r')
legend('Original', 'Recovered')
subplot(212), stem(n,x2_rec(1:100),'r')
legend('Original', 'Recovered')
Simulation Results:
Discussion:
Both the information signals were created and after for a square length of 100 after that a 128 point FFT was
performed, 128 being the force of 2 making it radix 2 FFT , to recuperate the sign IFFT was performed both the
signs were plotted together and it is apparent from the Fig. 2 that the recuperated signal is same as the
produced succession.