Step Function VI
- Updated2025-07-30
- 2 minute(s) read
Generates the step function for any real number x.

Inputs/Outputs
x
—
x is any real number.
step(x)
—
step(x) is the value of step(x) for the given value of x. |
The following equation defines the step function.
step(x) = 0 if x < 0 and 1 elsewhereNote You can define more complex functions by varying and combining the Step Function, Spike Function, and Square Function VIs, respectively.
The following illustration shows the graph for step(x) + spike(x) in the interval (–4.0, 4.0)

x
—
step(x)
—