Return a periodic square-wave waveform.
The square wave has a period 2*pi, has value +1 from 0 to 2*pi*duty and -1 from 2*pi*duty to 2*pi. duty must be in the interval [0,1].
Parameters : | t : array_like
duty : float, optional
|
---|---|
Returns : | y : array_like
|