y = pulse(tz, p, w)
Generates a pulse train (y = 0.0 or 1.0) with nonzero values starting at tz, period p and pulse width w.
Note that the computed values of pulse edges may be affected by communication interval (cinterval) and integration step size, and so pulse should be used with care. When it is necessary to ensure that events occur at specific times, independent of communication interval or integration step size, the schedule or interval statements should be used instead of pulse.
y = 20.0*pulse(5.0, 1.0, 0.5)