www.pudn.com > ldpc802.16.rar > qamdemod4soft_2bpsk.m, change:2005-10-17,size:261b


function [out]=qamdemod4soft_2bpsk(in,sigma) 
 
len=length(in); 
 
tmp=zeros(1,2*len); 
for i=1:len 
    re=real(in(i)); 
    im=imag(in(i)); 
     
    tmp(2*i-1)=1/(1+exp(-sqrt(2)*re/(sigma/2))); 
    tmp(2*i)=1/(1+exp(sqrt(2)*im/(sigma/2))); 
end 
 
out=tmp;