递归系统卷积码译码_递归系统卷积码的状态转移 | 学步园

令 生成多项式为:G(7,5)=[1 1 1;1 0 1]    注意是系统码

第一种方法:

a= poly2trellis(3, [7 5],7);

>> a.nextStates

ans =

0 2

2 0

3 1

1 3

第二种方法:

function [next_out, next_state, last_out, last_state] = trellis(g)

% copyright Nov. 1998 Yufei Wu

% MPRG lab, Virginia Tech

% for academic use only

% set up the trellis given code generator g

% g given in binary matrix form. e.g. g = [ 1 1 1; 1 0 1 ];

% next_out(i,1:2): trellis next_out (systematic bit; parity bit) when input = 0, state = i; next_out(i,j) = -1 or 1

% next_out(i,3:4): trellis next_out (systematic bit; parity bit) when input = 1, state = i;

% next_state(i,1): next state when input = 0, state = i; next_state(i,i) = 1,...2^m

% next_state(i,2): next state when input = 1, state = i;

% last_out(i,1:2): trellis last_out (systematic bit; parity bit) when input = 0, state = i; last_out(i,j) = -1 or 1

% last_out(i,3:4): trellis last_out (systematic bit; parity bit) when input = 1, state = i;

% last_state(i,1): previous state that comes to state i when info. bit = 0;

% last_state(i,2): previous state that comes to state i when info. bit = 1;

[n,K] = size(g);

m = K - 1;

max_state = 2^m;

% set up next_out and next_state mat

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值