%   p2 is a square pulse 
function y=p2(k)
if k<=20
   y=1;
else
   y=0;
end
