I have read many excellent answers to similar questions, but never one this specific. Here is another way to ask it.
- Why is the modulation transfer function (MTF) of $\textrm{rect}(x/5) = \textrm{sinc}(5x)$ not equal to the DFT of a vector of zeros with 5 ones in the center?
Relative MATLAB picture and code:
x = -512:511; x = x / 1024;
sq = zeros(1,1024); sq(511:515) = 1;
sqMTF = abs(sinc(x*5)); %'Modeled'
sqDFT = 1/5* abs(fftshift(fft(sq))); %'Measured'
I can make the two curves overlay each other by multiplying the DFT result by $\textrm{sinc}(x)$, which I intuit should be related to windowing of the original signal and related spectral leakage.
- But shouldn't this be a convolution in the frequency domain, as opposed to a multiplication?
Jack.