Got the 2D coherence code in F90 (using FFTW) and MATLAB to give the same results (within error due to the random noise).