How to use frequency as input for ifft
조회 수: 6 (최근 30일)
이전 댓글 표시
I find that I cannot input frequency as input for the funciton ifft. However, my frequency range is really large and my Y vector are corresponding to specific frequencies. How can I also include frequency as a input. Thanks
댓글 수: 5
채택된 답변
Matt J
2018년 9월 12일
편집: Matt J
2018년 9월 12일
If you don't have uniformly-spaced frequency sampling, then the IDFT (and in particular the IFFT) doesn't make sense. Its theory is predicated on uniform sampling.
You could always use the integral() command to implement a discretized inverse Fourier transform integral. Alternatively, you could use interp1 to resample the spectrum at uniformly spaced sample locations - then the IDFT/IFFT could be applied.
댓글 수: 5
dpb
2018년 9월 13일
The IFFT simply reverses the FFT; if you have 10k (complex) frequency components, the IFFT will produce 10k (presumably real) points in the time domain that will precisely reproduce the input that would have created the transform.
The sample rate is, as noted previously, simply an external bookkeeping arrangement to apply correct units for interpretation.
You can, of course, interpolate or decimate by using the optional second argument.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!