Dynamic Time Warping (DTW)
Dynamic Time Warping (DTW)
DTW is implemented in both MATLAB/Octave and C/MEX. The C/MEX function is very fast.
The algorithm we use is the standard one from Wikipedia:
There is a demo in the package. To use, just call:
d=dtw(s,t,w)
or
d=dtw_c(s,t,w)
This library is also available on MathWorks MATLAB Central:
Cite As
Quan Wang (2024). Dynamic Time Warping (DTW) (https://github.com/wq2012/dynamic_time_warping/releases/tag/v2.2), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Cepstral Analysis >
Tags
Acknowledgements
Inspired: jsantarc/Dynamic-Time-Alignment-K-Means-Kernel-Clustering-For-Time-Sequence-Clustering
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
code
Version | Published | Release Notes | |
---|---|---|---|
2.2 | See release notes for this release on GitHub: https://github.com/wq2012/dynamic_time_warping/releases/tag/v2.2 |
||
1.4.0.0 | Minor bug fixed according to the suggestion from Steven du, NTU. Thanks. |
||
1.3.0.0 | added Matlab compiler as required products |
||
1.2.0.0 | removed mex file |
||
1.0.0.0 |