フィルターのクリア

Reconstruct time series from FFT components. There is a time shift error.

37 ビュー (過去 30 日間)
Haifei Chen
Haifei Chen 2024 年 6 月 24 日 18:38
コメント済み: Haifei Chen 2024 年 6 月 25 日 4:38
Hello,
I'd like to extract various frequency components (amplitue, frequecny, phase) by applying FFT to a time series. Then to check if I get the correct numbers, reconstruct the time series by summing up the cosine components. As shown in the figure attached, there seems to be a growing time shift. What went wrong in my script? This issue is absent for my another set of data though.
Thank you!

採用された回答

Paul
Paul 2024 年 6 月 25 日 3:49
編集済み: Paul 2024 年 6 月 25 日 3:56
Hi Haifei,
You may want to investigate why the data is not uniformly sampled and how that impacts the analysis. Does the other set of data exhibit the same behavior?
load fftData.mat
t = t_exp';
x = y_exp';
plot(diff(t))
  1 件のコメント
Haifei Chen
Haifei Chen 2024 年 6 月 25 日 4:38
Hi Paul,
Thank you for pointing that out. I didn't notice the samping rate is not strictly uniform for this dataset (it was uniform for the other dataset).
Much appreciated!
Haifei

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by