Discrete Frechet Distance
The Frechet distance is a measure of similarity between two curves, P and Q. It is defined as the minimum cord-length sufficient to join a point traveling forward along P and one traveling forward along Q, although the rate of travel for either point may not necessarily be uniform.
This algorithm calculates a bounded approximation of the Frechet distance using sampled points along curves P and Q.
Cite As
Zachary Danziger (2026). Discrete Frechet Distance (https://uk.mathworks.com/matlabcentral/fileexchange/31922-discrete-frechet-distance), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Curve Fitting Toolbox > Interpolation >
- Code Generation > Fixed-Point Designer > Embedded Implementation > Fixed-Point Math Operations in MATLAB and Simulink >
- FPGA, ASIC, and SoC Development > Fixed-Point Designer > Embedded Implementation > Fixed-Point Math Operations in MATLAB and Simulink >
Tags
Acknowledgements
Inspired: Frechet Distance (discrete)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.4.0.0 | Fixed call to nargin that should have been nargout |
||
| 1.2.0.0 | Added a new optional output which returns a valid coupling sequence at the suggestion of Lingji. |
||
| 1.1.0.0 | Removed extraneous inner function inputs for efficiency. |
||
| 1.0.0.0 |
