movcorr(x, y, k, varargin): Compute windowed correlation coefficient

Compute a moving correlation for two vectors x & y in analogy to the MOV* functions.

Download
Download

You are now following this Submission

Cite As

David J. Mack (2026). movcorr(x, y, k, varargin): Compute windowed correlation coefficient (https://ch.mathworks.com/matlabcentral/fileexchange/65342-movcorr-x-y-k-varargin-compute-windowed-correlation-coefficient), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0

[MOD]
- Now returns NaN for zero-variances, to be consistent with CORR.

Download
1.3.0

[ADD]
- Output n to return the local window sizes (useful for computing partial correlations).
- Name-value input 'MinN' to control how many samples are needed in a local window to compute r.

Download
1.2.0

Fix in input parser.

Download
1.1.0

Forgot file update

Download
1.0.0

Added ML-FEX ID to description.

Download