psd of any signal

How to find psd of any signal and I want the data as frequency(rad/sec) vs power

답변 (2개)

Carlos
Carlos 2014년 3월 31일

0 개 추천

Try something like this
N = length(x);
xfft = fft(x);
psdx = (1/(2*pi*N)).*abs(xfft).^2;
freq = 0:(2*pi)/N:2*pi-(2*pi)/N;
plot(freq./pi,10*log10(psdx)); grid on;
Achintya Roy
Achintya Roy 2014년 3월 31일

0 개 추천

Is there any theory behind this

이 질문은 마감되었습니다.

질문:

2014년 3월 31일

마감:

2021년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by