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

조회 수: 4 (최근 30일)
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일
편집: Paul 2024년 6월 25일
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일
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 CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by