OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis


File Submission

Submit Files

Update Files


Add New Category





File Exchange > Category:Signal Processing >
   Cross Correlation


Antoine Couturier

Date Added:




Last Update:


Total Ratings:


File Size:

3393 Bytes

Average Rating:

File Name:


Created Using:

Origin 8.0

File Version:


Working Versions:





Test for significant shift between datasets


Those buttons will test whether selected datasets are significantly shifted or not, using cross-correlation technique. Left button is for linear data and right button for circular (i.e. periodic) data.

If multiple datasets are selected, all combinations are tested.

The following results are printed in script window:
Data type and columns tested:linear or circular, column longname (if exists) or shortname
Rmax: maximum correlation
tRmax: corresponding shift value
R0: correlation for shift=0
R95%:correlation in the 95% confidence band
Interval1 & Interval2: corresponding shift intervals.
For linear data, there is no significant lag between the 2 signals if 0 is between interval1 and interval2.
For circular data, there is no significant lag between the 2 signals if interval1>interval2
Shift significance

More details on algorithm can be found in:
Li L, Caldwell GE. Coefficient of cross correlation and the time domain correspondence. J Electromyogr Kinesiol. 1999; 9 (6): 385-9.

Screen Shot:



Rated by: couturier

Date: (11/26/2009 4:33:56 PM)

Hi Cajal, I've never had such issue. You can contact me at antoine.couturier@insep.fr so we can dig deeper into your problem.

Rated by: couturier

Date: (11/26/2009 4:32:19 PM)

Rated by: Cajal

Date: (11/25/2009 6:45:34 AM)

I am trying to use the tool with periodic data (EEG recordings), but I get the following error message: AA.NROWS: object property not found! Error: cannot find a (unique) variable corresponding to type Where is my mistake? Could someone help me? Thanks.

Rated by: Georged

Date: (5/7/2009 5:46:35 AM)

Submit Your Own Review

Please use this form to review this File Exchange submission. Please do not use this form to report a problem, bug, or suggestion. Instead, please contact the person who submitted this File Exchange item by clicking here.

User ID:   Password  
Join here

How would you rate this? (on a scale of 1 to 5, with 5 being extremely useful)
1    2    3    4    5

Your Comments (no bug reports please):

© OriginLab Corporation. All rights reserved.