www.pudn.com > ctc-matlab.rar > ctcdecode.m, change:2005-03-21,size:358b


function CtcDecode=ctcdecode(DemoduResult,type,en,niter,L1) 
en=10^(EbN0(i)/10); 
if type==1|type==2 
    L_c=4*en*rate;%为了防止计算溢出,对于16-QAM调制,再乘一个因子(1/sqrt(10)),64-QAM乘以(1/sqrt(42)) 
elseif type==3|type==4 
    L_c=4*en*rate/sqrt(10); 
else 
    L_c=4*en*rate/sqrt(42); 
end 
y=0.5*L_c*DemoduResult; 
CtcDecode=CtcDecoder(y,niter,type,L1);