A C++ mex code for fast calculation of the Levenshtein distance between two strings.
You need to compile this using "mex -setup" and then "men LevenDistance.cpp".
This is based on a corrupted source code from:
http://hi.baidu.com/mhyuycwnspbqswe/item/936632f359a5a9b631c199d8
Hanan Shteingart (2021). Levenshtein Distance Fast (MEX) C++ (https://www.mathworks.com/matlabcentral/fileexchange/46400-levenshtein-distance-fast-mex-c), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Tested against other m-code implementations. It's more that two orders of magnitude faster.
However, it would be great if an .m file with the help was added.