I am trying to find modulation transfer function of a gaussian curve by using MATLAB. The gaussian curve is as below:
x- axis is distance(form -15mm to 15mm) and y axis is count(Magnitude). I used the following code to find find fourier transfrom of gaussian curve.
FFT_y = fft(y);
FF_mag = abs(FFT_y )/(length(FFT_y ));
FF_mag = (FF_mag-min(FF_mag))./(max(FF_mag)-min(FF_mag));
I cropped FF_mag by using the following codes
FF_mag_nw = FF_mag(1:(length(FF_y)/32));
I used 32 in above code to get main portion of graph and I got MTF plot as below:
I am confused about X-axis. What will be the range of X-axis in per mm? Can anyone help me give an idea to calculate X-axis of MTF plot?
Thanks in Advance! Manu