You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
If you pass in 2 vectors it returns the unnormalized distance between the vectors, the accumulated distance between them, the length of the warping path (the normalizing factor), and the warping path points.
To compare 2 vectors A and B call:
[Dist,D,k,w]=dtw(A,B)
Dist is the unnormalized distance
D is the accumulated distance
k is the length of the warping path
(the normalizing factor)
w is a matrix containing the points along the warping path
Cite As
Timothy Felty (2026). Dynamic Time Warping (https://ch.mathworks.com/matlabcentral/fileexchange/6516-dynamic-time-warping), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Constrained Dynamic Time Warping Distance Measure, Continuous Dynamic Time Warping
General Information
- Version 1.0.0.0 (1.47 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Faster implementation thanks to review by Georg Schmitz. |
