I have the firing rate map of a cell and I need to get the spatial autocorrelation from the firing rate map. I tried xcorr2 function in MATLAB, but it was giving a central peak and all others just faded out. I need an autocorrelogram function (MATLAB function) which takes my firing rate map as the input and gives the corresponding autocorrelogram (spatial autocorrelation) as the output. Can anyone give a suggestion for this? Thanks in advance.