problem with correct frequency units using pwelch or other spectral estimate functions in matlab

1 次查看(过去 30 天)
I understand that when calculating a spectrum with pwelch the sampling frequency is given by the input variable fs
Assuming I have a monthly time series X of length T = 120 [months] (12 years):
length(X) = 120
Now I would like to calculate a spectrum and get a frequency vector with unit [cycles/year]. Which fs do I have to choose to get the correct output in the frequency vector or plot?
pwelch(X,[],[],[],fs)
[a b] = pwelch(X,[],[],[],fs)
Thanks!!!

采纳的回答

Rick Rosson
Rick Rosson 2012-11-15
fs = 12; % samples per year

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Estimation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by