Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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!!!

Respuesta aceptada

Rick Rosson
Rick Rosson el 15 de Nov. de 2012
fs = 12; % samples per year

Más respuestas (0)

Categorías

Más información sobre Spectral Estimation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by