필터 지우기
필터 지우기

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