power spectral density PSD?
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
Wayne King
2013-11-28
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 个评论
Mary Jon
2013-11-28
Wayne King
2013-11-28
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
2013-11-28
Wayne King
2013-11-28
your data values are almost zero They are all on the order of 10^(-16)
Youssef Khmou
2013-11-29
you can also try :
T=abs(fft(c13,512));
T=T.*conj(T);
figure, plot(T)
Mary Jon
2013-11-30
Youssef Khmou
2013-12-1
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
类别
在 帮助中心 和 File Exchange 中查找有关 Parametric Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!