필터 지우기
필터 지우기

How to find annual amplitude and phase of time series

조회 수: 9 (최근 30일)
Chris Martin
Chris Martin 2013년 7월 19일
How to find annual amplitude and phase of time series

채택된 답변

Wayne King
Wayne King 2013년 7월 19일
There are a number of ways you can try and estimate it. Do you have a priori knowledge of the frequency? If so you can use linear regression to find the amplitude and phase.
For example, assume I know the frequency is 10 Hz for data sampled at 100 Hz.
Fs = 100;
t = 0:1/Fs:2-1/Fs;
x = 1.5*cos(2*pi*10*t-pi/4)+randn(size(t));
% create the design matrix
X = ones(length(x),3);
X(:,2) = sin(2*pi*10*t);
X(:,3) = cos(2*pi*10*t);
x = x(:);
beta = X\x;
The amplitude estimate is:
amp_est = norm([beta(2) beta(3)],2)
The phase angle estimate is:
phase_est = atan2(-beta(2),beta(3))
If you don't know the frequency a priori, then look at the following example:
  댓글 수: 2
Chris Martin
Chris Martin 2013년 8월 2일
Frequency is one cycle per year
Wayne King
Wayne King 2013년 8월 2일
Then you should be able to use method I give you above.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by