1
.TH squarewave G "Sept 1999" "Scilab Group" "Scilab Function"
4
squarewave - generates a square wave with period 2*%pi
12
: real vector, time discretization
15
: real vector, the wave value at each time point in set (-1,+1)
18
: real positive scalar, the percent of the period in which the signal
19
is positive. Defaut value is 50
21
\fVsquarewave(t)\fR generates the vector of the values of the square
22
wave with period 2*%pi at each date given in the \fVt\fR vector.
24
\fVsquarewave(t,%)\fR generates a square wave such that \fV%\fR is
25
the percent of the period in which the signal is positive.
30
plot2d1('onn',t,[2*sin(t),1.5*squarewave(t),squarewave(t,10)])