testinvconvenc.m
来自「The code includes the implementation of 」· M 代码 · 共 14 行
M
14 行
function testInvConvEnc
%% The code includes the implementation of inverse convolutional code and
%% testing of it.
t = poly2trellis(7, [171 133]); k = log2(t.numInputSymbols);
tblen = 30;
msg = round(rand(1,tblen));
code = convenc(msg,t,0); tblen = 1000;
[outState out] = invConvenc(code, [0 0]);
if sum(abs(out-msg)) == 0
disp('Verified!');
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?