function [PSS] = gen_pss(Nid);
% generator PSS sekvence - Nid - sektor buòky (0,1,2)
if Nid==0
    u=25;
elseif Nid==1
    u=29;
elseif Nid==2
    u=34;
else
    error('Nid musí být 0,1, nebo 2!');
end

for i=1:62
    if i<31
       PSS(i)=exp(-1j*(pi*u*i*(i+1))/(63)); 
    else
       PSS(i)=exp(-1j*(pi*u*(i+1)*(i+2))/(63));  
    end
end
PSS=circshift(PSS,[0 1]);
end