Two point correlation function of a finite 2D lattice
by Ilya Valmianski
06 May 2011
(Updated 09 May 2011)
Compute the two point correlation function of a finite 2D lattice.
|
Watch this File
|
| File Information |
| Description |
Computes the distance 2-point correlation function of a finite 2D lattice. The functions is:
[ coorfun r] = twopointcorr(x,y,width,height,dr)
Where x is the list of x coordinates of lattice points. y is the list of y coordinates of the lattice points, width is the width of the lattice, height is the total height of the lattice, and dr is the binning length for the correlation function. The outputs are coorfun and r. Coorfunis a vector of normalized correlation function values for distances recorded in the r vector.
This function has been vectorized to improve performance. |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
Tested on 2007b but should operate at earlier versions as well. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 09 May 2011 |
There was a minor error in normalization which resulted in the entire function being divided by the number of particles an extra time. |
| 09 May 2011 |
Some performance improvements. |
|
Contact us at files@mathworks.com