www.pudn.com > ldpc802.16.rar > buildtimeslot.m, change:2005-10-25,size:398b


function [output]=buildtimeslot(data,pilot,loc1,loc2) 
 
tmp=zeros(size(data,1),size(data,2)+size(pilot,2)); 
for i=1:8 
    if i<loc1 
        tmp(:,i)=data(:,i); 
    elseif i==loc1 
        tmp(:,i)=pilot(:,1); 
    elseif (i>loc1)&(i<loc2) 
        tmp(:,i-1)=data(:,i-1); 
    elseif i==loc2 
        tmp(:,i)=pilot(:,2); 
    else 
        tmp(:,i-2)=data(:,i-2); 
    end 
end 
output=tmp;