www.pudn.com > mimoprecoding.rar > rx_init_viterbi.m, change:2005-12-01,size:722b


function rx_init_viterbi 
global sim_consts; 
global prev_state; 
global prev_state_outbits; 
prev_state = zeros(64, 2); 
prev_state_outbits = zeros(64, 2, 2); 
for state = 0:63 
   state_bits = de2bi(state, 6); 
   input_bit = state_bits(1); 
   for transition = 0:1 
      prev_state_bits = [state_bits(2:6) transition]; 
      prev_state(state+1, transition+1) = bi2de(prev_state_bits); 
      prev_state_outbits(state+1, transition+1, 1) = 2*(rem(sum(sim_consts.ConvCodeGenPoly(1,:).* ... 
         [input_bit prev_state_bits]),2)) - 1; 
      prev_state_outbits(state+1, transition+1, 2) = 2*(rem(sum(sim_consts.ConvCodeGenPoly(2,:).* ... 
         [input_bit prev_state_bits]),2)) - 1; 
   end 
end 

2018无需申请注册送58体验金