FUNCTION REFERENCE

step

Unit-step responses of a continuous or discrete LTI model.

Unit-step responses of a continuous or discrete LTI model.

Syntax

[y,t,x] = step(sys[,t_or_final_time])

Syntax

step(sys1,sys2,...[,t_or_final_time])

The outputs y and x have time in the first dimension, output or state in the second, and the excited input in the third. t is a time column. Without outputs, draws one axes per I/O pair with a shared time axis; several systems overlay. Continuous uniform-grid propagation uses one augmented matrix exponential and exact constant-input recursion, up to floating-point rounding. Discrete propagation uses the model matrices at Ts. SISO transport delays shift the response; the automatic horizon includes the delay.

Automatic time: poles with abs(p)<=1e-10 are treated as integrators and contribute 10; other stable poles contribute 7/abs(real(p)); other unstable or purely imaginary poles contribute 10/abs(p). Use the largest contribution (10 if there are no poles). For discrete poles, p means log(z)/Ts, and a zero pole contributes no rate. Rates above the integrator threshold with abs(real(p))<=1e-10*abs(p) are treated as purely imaginary and contribute 10/abs(p), including rates obtained from discrete poles. Continuous grids use clamp(ceil(25*Tfinal*fastest_pole_rate)+1,100,10000) samples. Default discrete grids clamp floor(Tfinal/Ts)+1 to 100..10000 samples at Ts, extending or truncating the pole-derived horizon; static models use 101 samples. Explicit scalar final times use floor(Tfinal/Ts)+1 and requests exceeding 10000 samples are rejected. A supplied time vector must be uniform, start at zero and have 2..10000 samples; discrete spacing must equal Ts. A scalar positive final time uses the same sampling rule. Responses are limited to 256 states, 64 ports, 4 million combined state/output entries and bounded work.

Example

G=tf(1,[1 0.4 1]); [y,t]=step(G,0:0.1:10)

Example

G=tf(1,[1 1]); step(G,G,0:0.1:5)

Differences from MATLAB: Time vectors must be uniform and start at zero. Automatic grids and plot styling differ. No response options or model arrays.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.