www.pudn.com > ldpc802.16.rar > ldpc_genHbm_3gpp.m, change:2005-09-26,size:200b


function [out]=ldpc_generate_3gpp(H,zmax,z) 
 
[m,n]=size(H); 
H1=zeros(size(H))-1; 
 
for i=1:n 
    loc=find(H(:,i)~=-1); 
    p=H(loc,i); 
    p1=floor(p*z/zmax); 
    H1(loc,i)=p1; 
end 
 
out=H1;