资 源 简 介
function decoder_output=viterbi_hard(y,L)
global G;
n=size(G,1);
K=size(G,2);
number_of_states=2^(K-1);
%------------------------------------------------
%-------------生成各分支的输出--------------------
%------------------------------------------------
for j=0:number_of_states-1
for t=0:1
[next_state,memory_contents]=next_state_fun(j,t,K);
input(j+1,next_state+1)=t;
branch_output=rem(memory_contents*G",2);
nextstate(j+1,t+1)=next_state;