**Magnitude and Phase**

**AIM**

**:-**To compute Magnitude and Phase of transformed signal using FFT.

**THEORY: -**Fast Fourier Transform algorithms are faster algorithms to compute DFT. Magnitude and Phase plots can be observed for the Fourier transformed signal. Cestral analysis is special case of frequency domain techniques.

**PROGRAM: -**

Fs = 1000;

T = 1/ Fs;

t = 0:T:1;

y = sin ( 2 * pi * 200 * t ); // generates sine wave of 200Hz //

plot(y)

z = fft(y,1024); // gets 1024 point fft for y //

N = ( 0 :1023 )’ * Fs / 1024;

z1 = abs(z);

plot( N, z1)

title( ‘ FFT Plot ‘ )

z2 = angle (z);

plot( N, z2 )

title( ‘ Phase Plot ‘)

**RESULT: -**Magnitude and Phase plots were observed and plotted.

## No comments:

## Post a Comment