フィルターのクリア

How to remove particular harmonic in the time series?

21 ビュー (過去 30 日間)
balaji
balaji 2018 年 6 月 26 日
回答済み: KSSV 2018 年 6 月 26 日
Given a anomaly time series, for which time series need to be computed by removing annual cycle or 1st harmonic or any particular harmonic. Is the method of computing FFT and making ith & (n+1-i)th coefficients making zero and then iFFT, will give the required result or anything need to be taken care?
clc;clear;clf;
t=0:0.2:4*pi+.1; l = 64 ;
x=3*sin(t)+2*sin(2*t)+sin(6*t);
X = fft(x);
X2=X; X2(3)=0; X2(64-1)=0;
x2 = ifft(X2);
plot(x,'r'); hold on; plot(x2, 'g');
x3=0*sin(t)+2*sin(2*t)+1*sin(6*t);
plot(x3, 'b');

採用された回答

KSSV
KSSV 2018 年 6 月 26 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by