You are on page 1of 1

j=1;

for i=1:2001
t(j)=(i-1001)/100;
if j<=1001
u(i)=0;
else u(i)=1;
end
j=j+1;
end
plot (t,u)

You might also like