Cross-correlation is a measure of similarity of two waveforms as a function of a time-lag applied to one of them.
Autocorrelation is the cross-correlation of a signal with itself. It is a time domain analysis useful for determining the periodicity or repeating patterns of a signal.
Here are two Matlab scripts which perform correlation analysis. They do not require the Matlab Signal toolbox.
Here is a paper: autocorrelation.pdf
* * *
Here is a set of Fortran programs:
– Tom Irvine