?? ber.m
字號:
function [err_rate]=BER(m,out)
% m=[1 1 0 0 1 1 1 0 0 1 ];
% out=[1 0 0 0 1 1 0 0 0 1 ];
temp=0;
for i=1:length(out)
if out(i)==m(i)
temp=temp+0;
elseif out(i)~=m(i)
temp=temp+1;
end
end
err_rate=temp/length(out);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -