square
Page in progress. |
A rectangular signal.
Library |
|
Syntax
Function call
-
x = square(t)
— generates a rectangular signal with a period for time array elementst
. The 'square` function is similar to the sine function, but it creates a rectangular signal with values of-1
and `1'.
-
x = square(t, duty::T) where T<:Number
— generates a rectangular signal with the specified fill factorduty
. The fill coefficient is the percentage of the signal period during which the rectangular signal is positive.