power spectral density PSD?
Show older comments
If I am have signal with length(33),or 13 signals each with length(33), How finding PSD to each signal individually?and plot its individually?
Accepted Answer
More Answers (1)
Wayne King
on 28 Nov 2013
Hi Mary, If you have the Signal Processing Toolbox, the easiest thing is to use periodogram()
I'll create some simulated signals. I'll assume your sampling frequency is 1.
X = randn(33,13);
for nn = 1:13
[Pxx(:,nn),Fxx] = periodogram(X(:,nn),[],64,1);
end
You can plot each one individually by selecting the column.
plot(Fxx,10*log10(Pxx(:,1)))
7 Comments
Mary Jon
on 28 Nov 2013
Wayne King
on 28 Nov 2013
64 is zero-padding because your signals are pretty short in length. To know the sampling frequency you have to know how the data were acquired. What is the time spacing between each value in c13 for example.
By the way, these values are almost zero 10^(-16)
Mary Jon
on 28 Nov 2013
Wayne King
on 28 Nov 2013
your data values are almost zero They are all on the order of 10^(-16)
Youssef Khmou
on 29 Nov 2013
you can also try :
T=abs(fft(c13,512));
T=T.*conj(T);
figure, plot(T)
Mary Jon
on 30 Nov 2013
Youssef Khmou
on 1 Dec 2013
512 is the number of points for calculating DFT, you can put any number, higher number gives good resolution, any number that is multiple of 2 (128,512,1024...) is faster DFT becomes FFT
Categories
Find more on Parametric Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!