📄 metric.m
字号:
%metric.m
%viterbi解码子程序
function distance=metric(x,y)
if x==y
distance=0;
else
distance=1;
end
%switch(y)
%case 0
%if x==0
%distance=0.0458;
%end哈尔滨工业大学工学硕士学位论文
%if x==1
%distance=2;
%end
%if x==2;
%distance==1.0458;
%end
%case 1
%if x==0
%distance==2;
%end
%if x==1
%distance=0.0458;
%end
%if x==2
%distance=1.0458;
%end
%otherwise,
%break;
%end
%************************end of file***********************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -