ratio.m
来自「for double color balls, it can help you 」· M 代码 · 共 12 行
M
12 行
function ratio=ratio(X,Y)
% get the ratio X from Y
lenX=length(X);
lenY=length(Y);
count=0;
for m=1:lenX
if(find(Y==X(m)))
count=count+1;
end
end
ratio=count/lenX;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?