%%%输入
%%% X,Y-两个都是字符串,例如“测试”或“ stingtocompare”
%%%输出
%%% D是最短字符串长度上的子字符串
%%% dist是子字符串的长度
%%; unsestString是长度dist的sting(可能只有一个)
引用为
大卫·康宁(David Cumin)(2022)。最长的常见子序列(//www.tianjin-qmedu.com/matlabcentral/fileexchange/24559-longest-common-subsequence),matlab中央文件交换。检索。