positive square wave
Why won't this function create a positive square wave: e(t)=mod(round(t),2)? The function e(t)=round(t) works fine. Why won't it take the modulus and plot it?
I know I can make a unit sized positive square wave using the f(x)=(sign(sin(w*x))+1)/2, but it just seems odd that the above method won't plot.