pulse

pulse(double startTime, double pulseWidth)

Description

Returns 1, starting at startTime, and lasting for interval pulseWidth; 0 is returned at all other times.

Parameters

Name Type Description
startTime double the pulse start time
pulseWidth double the length of pulse time interval

Result

Type Description
double 1 for pulse (when time is within [start, start+width)), otherwise 0

Example

Units

startTime -> time
pulseWidth -> time

pulse() -> dimensionless