Does anyone know how to change the frequency of this square wave? I don't want to use the Matlab square(T) function. I'm pretty sure there is more code needed to add to this.
When I chenge the line y = [ones(L/2),zeros(L/2)]; to
y = [ones(L/4),zeros(L/4)]; it won't plot.
I'm stumped.
Thanks for...