co_dec.m
来自「OFDM系统仿真」· M 代码 · 共 12 行
M
12 行
function output = co_dec( input, mode )
%
% convolution code and viterbi soft decode according to 'mode'
%
trellis = poly2trellis( 7, [ 171 133 ] ); % trellis structure of (2 1 7) convolution code
if mode == 1
output = convenc( input, trellis );
else
output = vitdec( input, trellis, 7, 'trunc', 'hard' );
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?