Main Content


Heaviside step test signal


heaviside(x) creates a Heaviside step signal. Heaviside signals are also called unit step signals and are discontinuous functions. They return 0 for x < 0 and 1 for x > 0.

Sample Heaviside signal

To specify when to generate a Heaviside step signal within a test step, use this operator with the elapsed time (et) operator.


Create a Heaviside Signal

Create a Heaviside step signal after 10 seconds.



  • heaviside signal generation statements can be used in the Test Sequence and Test Assessment blocks.

  • heaviside signal generation statements cannot be used in Stateflow® charts.

Introduced in R2015a