MATLAB ifft time shift problem
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi there, Recently i encountered some problems when using the ifft function. The time shift property of a fourier transform is as folows:
f(t-t0) <-> F(f)*exp(-j*f*t0)
However, when doing an ifft on the right side function (in frequency domain), the time domain signal shifts to the right (in stead of shifting to the left). The formulas on fft help page (section 'More About') are the same formulas I used to derive this time shift property. The ifft page doesn't specify any information about used formulas.
Can anybody tell me if they encountered similar problems? Currently I've solved the problem by replacing the exp(-j*f*t0) by exp(j*f*t0), but I would like to get a good explanation of why this solution works.
Thanks for your time!
댓글 수: 0
답변 (2개)
Star Strider
2016년 10월 19일
You didn’t show your calculation for the Fourier transform. If you used ‘+j’ for the Fourier transform, use ‘-j’ for the inverse transform. The signs themselves don’t matter, so long as the sign for the ‘forward’ transform is the negative of the sign for the ‘inverse’ transform.
댓글 수: 2
Star Strider
2016년 10월 19일
That may depend on how the transform was originally calculated. I would just go with what works and be happy with the result.
Sk Group
2021년 10월 27일
For detailed post and complete code visit: https://www.swebllc.com/time-shifting-in-matlab-code-output/
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
