📄 testinvconvenc.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -