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!