judge.m

来自「实现用MFCC作为特证向量的孤立词识别系统」· M 代码 · 共 18 行

M
18
字号
function out=judge(MFCC,Embrace)
out1=MFCC;out2=Embrace;
l=0;
while(l<4)
p=find(out2==max(out2));
l=length(p)+l;
out2(p)=0;
end
for i=1:3
    if(out2(i*3-2)>0|out2(i*3-1)>0|out2(i*3)>0)
        out2(i*3-2)=1;
        out2(i*3-1)=1;
        out2(i*3)=1;
    end
end
out1(find(out2==0))=max(out1);
p=find(out1==min(out1));
if(floor(p/3)*3==p) out=p/3;else out=floor(p/3)+1;end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?