image thumbnail


version (14.2 KB) by Jordan Sorokin
Calculate the phase-space, distance matrix, and recurrence matrix of a time series


Updated 11 Apr 2016

View License

This function uses Taken's method of delays to construct a phase-space representation of vector "x". It then calculates the euclidean distance matrix "D", and thresholds this matrix by "epsilon" to obtain the recurrence matrix (R). In addition, the time delay "tau", embedding dimension "emb", and threshold "epsilon" are all estimated if not provided by the user or left blank (refer to documentation in the function for details).
The recurrence matrix has information regarding the temporal relationship of the high-dimensional phase-space "A"...if there are many repeated trajectories over time, then the recurrence matrix will have many diagonal lines. There are many more sophisticated measurements that can be taken from the recurrence matrix, and many fantastic papers/posts can be found online.
This function is self-contained, i.e. it is not dependent on other functions that need to be downloaded.

Cite As

Jordan Sorokin (2021). PhaseRecurr(x,varargin) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!