Discrete-time or continuous-time stair signal generator
Simscape / Electrical / Control / General Control
The Stair Generator block generates a stair signal based on the values specified in the Time (s) and Amplitude parameters.
The block can output a repeating stair pattern or execute the pattern only once by keeping the last amplitude active for all subsequent times.