EXPERIMENT3
EXPERIMENT3
AIM:
To perform Circular convolution of discrete time signals.
SOFTWARE REQUIRED:
Matlab software
THEORY:
To calculate circular convolution for two sequences namely,
x[n] = [a, b, c]
h[n] = [e, f, g]
The convolved output will be
x[n] ⊛ h[n] =
PROCEDURE:
Type the above code in Matlab, simulate the same and get the output.
SIMULATION RESULTS:
OBSERVATION:
The resulting convolved signal has the same length as the original
signals. This contrasts with linear convolution, where the length of the
resulting signal is the sum of the lengths of the original signals minus
one.
Since circular convolution involves wrapping the signals around,
the resulting convolved signal exhibits periodic behaviour. This
periodicity can be observed by plotting the convolved signal and noticing
the repeating patterns.
CALCULATION:
1.Given two discrete time signals x[n] and h[n] of lengths N and M,
respectively.
2.If necessary, zero-pad the signals to make them of equal length,
i.e., N = M = max(N, M). This step ensures that the resulting convolved
signal has the same length as the original signals.
3.Take the Discrete Fourier Transform (DFT) of both signals using
an FFT algorithm, resulting in X[k] and H[k], where k represents the
frequency index.
4.Perform point-wise multiplication of the frequency domain
representations: Y[k] = X[k] * H[k].
5.Take the inverse DFT (IDFT) of the product Y[k] using an inverse
FFT algorithm to obtain the circularly convolved signal y[n].
6.If necessary, truncate the length of y[n] to match the length of the
original signals, removing any additional zero-padding.
CONCLUDING REMARKS:
The circular convolution of two discrete time signals have been
calculated and the same has been plotted
EXPERIMENT-3B
Spectrum Analysis using Discrete Fourier Transform (DFT)
AIM:
SOFTWARE REQUIRED:
Matlab software
THEORY:
Given a discrete-time signal x[n] of length N, the DFT is calculated
as follows:
title('Correlated signal');
PROCEDURE:
Type the above code in Matlab, simulate the same and get the output.
SIMULATION RESULTS:
OBSERVATION:
1. He DFT provides frequency resolution determined by the
length of the input signal. A longer signal or higher DFT length
allows for finer frequency resolution, meaning smaller frequency
bins and the ability to distinguish closely spaced frequencies.
CALCULATION:
1.Obtain a discrete-time signal x[n] of length N.
2.Apply any necessary preprocessing steps, such as
windowing the signal to reduce spectral leakage effects. Let's
denote the windowed signal as x_w[n].
3.Calculate the DFT of the windowed signal x_w[n] using the
DFT formula: