There seems to be something wrong with the fft2 function on matlab. This is a simpler file of what im trying to do. It doesn't work properly when the fft2 function is added in. Can anyone see why? Does anyone have another fast Fourier Transform file?
NewF=ones(128); for x=1:128 for y=1:128 r=sqrt(x.^2 + y.^2); if r>max NewF(x,y)=0; end