Be the first to rate this file! 12 Downloads (last 30 days) File Size: 1.79 KB File ID: #31353

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.
Please login to add a comment or rating.
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.

Tag Activity for this File
Tag Applied By Date/Time
lattice Ilya Valmianski 09 May 2011 10:36:51
image processing Ilya Valmianski 09 May 2011 10:36:52
statistics Ilya Valmianski 09 May 2011 10:36:52
data exploration Ilya Valmianski 09 May 2011 10:36:52
physics Ilya Valmianski 09 May 2011 10:36:52
condensed matter Ilya Valmianski 09 May 2011 10:36:52
simulation Ilya Valmianski 09 May 2011 10:36:52
material science Ilya Valmianski 09 May 2011 10:36:52
pair correlation Ilya Valmianski 09 May 2011 13:36:09
two point correlation Ilya Valmianski 09 May 2011 13:36:17
image processing King Abdulaziz University 10 May 2011 10:42:33
image processing Nathan 10 Jun 2011 16:46:03

Contact us at files@mathworks.com