0% found this document useful (0 votes)
12 views1 page

Signal Processing Lab Exp No 9

The document details an experiment to calculate the discrete Fourier transform and inverse discrete Fourier transform of a digital signal. The experiment prompts the user to input a signal, calculates the DFT and IDFT of the signal, and displays the original, transformed, and reconstructed signals.

Uploaded by

aljele
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Signal Processing Lab Exp No 9

The document details an experiment to calculate the discrete Fourier transform and inverse discrete Fourier transform of a digital signal. The experiment prompts the user to input a signal, calculates the DFT and IDFT of the signal, and displays the original, transformed, and reconstructed signals.

Uploaded by

aljele
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Electrical Engineering Signal Processing Laboratory

Experiment No: 9
Aim: Calculate Discrete Fourier Transform and Inverse Discrete Fourier Transform of given digital
signal.

Program:

% Prompt the user to enter the digital signal


x = input('Enter the digital signal as a row vector: ');

% Calculate the Discrete Fourier Transform (DFT)


y = fft(x);

% Calculate the Inverse Discrete Fourier Transform (IDFT)


x_reconstructed = ifft(y);

% Display the original and reconstructed signals


disp('Original signal:');
disp(x);
disp('DFT of x:');
disp(y);
disp('IDFT of y:');
disp(x_reconstructed);

Results:

Enter the digital signal as a row vector: [1 2 3 4 4 3 2 1]


Original signal:
1 2 3 4 4 3 2 1

DFT of x:
Columns 1 through 4

20.0000 + 0.0000i -5.8284 - 2.4142i 0.0000 + 0.0000i -0.1716 -


0.4142i

Columns 5 through 8

0.0000 + 0.0000i -0.1716 + 0.4142i 0.0000 + 0.0000i -5.8284 +


2.4142i

IDFT of y:
1 2 3 4 4 3 2 1

Conclusion

You might also like