📄 coinc.m
字号:
function y = coinc(txt,n);% This function returns the number of matches between txt and txt % shifted by nxln=length(txt);x=[zeros(size(xln-n+1:xln)) txt(1:xln-n)]; %The zeros are at the beginning because I needed filler when doing the compare% One could wrap around the text, as in which case one would use % txt(xln-n+1:xln)v=(txt==x);y=sum(v);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -