MATLAB: How to define h(t)=1/2, 0

homework

how to define h(t)=1/2, 0<t<2*pi, interval=0.5
Thanks

Best Answer

t=0:0.5:2*pi
h=0.5*ones(1,numel(t))