IFFT for exponential function

14 ビュー (過去 30 日間)
Michael
Michael 2015 年 5 月 19 日
編集済み: Walter Roberson 2015 年 5 月 19 日
So the inverse Fourier transform of 1/(1+i*s) is exp(-y), I'm trying to verify this using ifft. My code is below and note that I use factor to account for the necessary N/(2pi) prefactor. The shape is normally correct but the amplitude is always off. I use s to denote frequency space and y for the regular function domain. I don't have a massive background on signal processing but if I'm missing something major I can read into it.
NN=2^16;
dy=.01;
ds=2*pi/(dy*NN);
grid=0:ds:(NN-1)*ds;
Lt=(1./(1+1i*20.*grid));
factor=ds*NN/(2*pi);
transform=ifft(Lt)*factor;
freq=0:pi/ds:2*pi/((NN-1)*ds);
density=real(transform);
plot(freq(1:length(freq)),density(1:NN/2));

回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete 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