Answers for "power spectral density - matlab"

0

power spectral density - matlab

N = length(x);
xdft = fft(x);
psdx = (1/(2*pi*N)) * abs(xdft).^2;
freq = 0:(2*pi)/N:2*pi-(2*pi)/N;

plot(freq/pi,10*log10(psdx))
grid on
title('Periodogram Using FFT')
xlabel('Normalized Frequency (\times\pi rad/sample)') 
ylabel('Power/Frequency (dB/rad/sample)')
Posted by: Guest on September-22-2020
0

power spectral density - matlab

periodogram(x)
Posted by: Guest on September-22-2020

Browse Popular Code Answers by Language