xcorrpvalue
Yields p value of the max value of a cross correlation by estimating what fraction of random permutations of one of the vectors yields a correlation equal or higher.
Cite As
Alex Backer (2026). xcorrpvalue (https://www.mathworks.com/matlabcentral/fileexchange/75403-xcorrpvalue), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.2 | This version accounts for the autocorrelation of either input series, preserving both in the random permutations, yielding the probability that any observed cross-correlation is not due to the autocorrelation of either input series. |
||
| 1.1.1 | Fixed bug that ignored input numvalues if provided. |
||
| 1.1 | Changed to use absolute value, so it detects negative correlations as well |
||
| 1.0.0 |
