FUNCTION REFERENCE
stepinfo
Measure sampled step-response characteristics.
Measure sampled step-response characteristics.
Syntax
S = stepinfo(sys[,t_or_final_time])Syntax
S = stepinfo(y,t)Returns RiseTime (first 10% to first 90% sample), SettlingTime (first sample after the last error of at least 2%), Overshoot and Undershoot (percent of absolute final value), Peak (absolute amplitude), PeakTime, SettlingMin and SettlingMax (extrema from the first 90% crossing, including the final value). Models use DC gain as the final value; data use the last sample. A MIMO model returns an outputs-by-inputs struct array; data return one struct per column. Undefined crossings and unsettled responses yield NaN; zero final values have undefined normalized metrics. No interpolation between time samples.
For models the automatic time rule is the one in step: poles with abs(p)<=1e-10 are treated as integrators and contribute 10; other stable poles contribute 7/abs(real(p)), other poles 10/abs(p). Use the largest contribution. Static models use 10 (100*Ts if discrete). Discrete poles use log(z)/Ts; continuous grids have clamp(ceil(25*Tfinal*fastest_pole_rate)+1,100,10000) points, discrete grids floor(Tfinal/Ts)+1 at Ts, at most 10000. Default discrete counts are clamped to 100..10000 while keeping Ts, extending or truncating the horizon. Explicit model grids start at zero and are uniform; data times may be nonuniform but must be strictly increasing.
Example
G=tf(1,[1 0.4 1]); S=stepinfo(G,0:0.01:40); S.OvershootExample
S=stepinfo([0;0.2;0.8;1;1],[0;1;2;3;4]); S.RiseTimeDifferences from MATLAB: Thresholds are fixed at 10%-90% and 2%. Only the listed fields are returned; no threshold or final-value options. Accuracy depends on the supplied sampling and duration.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.