LCSSubStr-a function that return two string's largest common part
a function that return two string's largest common part
% Usage:
% [ret]=LCSubstr(s,t)
% s: input string 1
% t: input string 2
% ret: Largest Common String
% z: Largest Common String Length
% L : Compare matrix
% Example:
% >>a='This is very common string';
% >>b='string is very common';
% >>[ret]=LCSubstr(a,b)
% ret =
%
% very common
Cite As
Zhiping XU (2026). LCSSubStr-a function that return two string's largest common part (https://www.mathworks.com/matlabcentral/fileexchange/27173-lcssubstr-a-function-that-return-two-string-s-largest-common-part), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: String subsequence tools
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
