フィルターのクリア

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 Center および File ExchangeSpectral Estimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by