You are on page 1of 3

LAB REPORT -4

AIM :-
To generate Power Spectral Density .

THEORY :-
Power Spectral Density (PSD) :-
PSD of a signal gives an analysis of the distribution
of power over the entire frequency range. The main
objective of using this method is to obtain the spectral
density estimation from the given data. It is estimated by
calculating the Fourier transform (FT) of the signals’
autocorrelation function.

PROCEDURE :-
PSD :-
clear all;
t=0:0.0001:1;
fm=10;
fs=20;
s=square(2*3.14*fs*t,50)+1;
F=abs(fft(s));
P= abs(fft(s)).^2;
subplot(3,1,1);
plot(t,F);
subplot(3,1,2);
plot(t,P);
subplot(3,1,3);
plot(t,s);

Rectangular pulse PSD:-

clear all;
fs=20;
t=-5:0.01:5;
R=rectpuls(t);
F=abs(fft(R));
P= abs(fft(R)).^2;
subplot(3,1,1);
plot(t,F);
subplot(3,1,2);
plot(t,P);
subplot(3,1,3);
plot(t,R);

CONCLUSION :-

 In the output Power Spectral Density is plotted


 We got the desired Power Spectral Density.

PSD:-
Rectangular Pulse PSD:-

You might also like