Main Content

heaviside

Heaviside step test signal

Description

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.

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

Examples

Create a Heaviside Signal

Create a Heaviside step signal after 10 seconds.

heaviside(et-10)

Tips

heaviside signal generation statements can be used in the Test Sequence and Test Assessment blocks and in Stateflow® charts.

Introduced in R2015a