rectpuls
A discretized aperiodic rectangle.
| Library |
|
Arguments
Input arguments
# t — sampling periods
+
vector
Details
Sampling periods of a single rectangular pulse, specified as a vector.
| Data types |
|
# tw — width of the rectangle
+
1 (by default) | positive number
Details
The width of the rectangle, set as a positive number.
Output arguments
# y is a rectangular pulse
+
vector
Details
A rectangular pulse of unit amplitude, returned as a vector.
An interval of nonzero amplitude is defined as open on the right, that is, rectpuls(-0.5)=1 whereas rectpuls(0.5)=0.
|