stepinfo - Compute step response characteristics

Syntax

S = stepinfo(y,t,yfinal)
S = stepinfo(y,t)
s = stepinfo(y)
S = stepinfo(sys
S = stepinfo(...,'SettlingTimeThreshold',ST)
S = stepinfo(...,'RiseTimeLimits',RT)

Description

S = stepinfo(y,t,yfinal) takes step response data (t,y) and a steady-state value yfinal and returns a structure S containing the following performance indicators:

For SISO responses, t and y are vectors with the same length NS. For systems with NU inputs and NY outputs, you can specify y as an NS-by-NY-by-NU array (see step) and yfinal as an NY-by-NU array. stepinfo then returns a NY-by-NU structure array S of performance metrics for each I/O pair.

S = stepinfo(y,t) uses the last sample value of y as steady-state value yfinal. s = stepinfo(y) assumes t = 1:ns.

S = stepinfo(sys) computes the step response characteristics for an LTI model sys (see tf, zpk, or ss for details).

S = stepinfo(...,'SettlingTimeThreshold',ST) lets you specify the threshold ST used in the settling time calculation. The response has settled when the error |y(t) - yfinal| becomes smaller than a fraction ST of its peak value. The default value is ST=0.02 (2%).

S = stepinfo(...,'RiseTimeLimits',RT) lets you specify the lower and upper thresholds used in the rise time calculation. By default, the rise time is the time the response takes to rise from 10 to 90% of the steady-state value (RT=[0.1 0.9]). Note that RT(2) is also used to calculate SettlingMin and SettlingMax.

Example

Create a fifth order system and ascertain the response characteristics.

sys = tf([1 5],[1 2 5 7 2]);
S = stepinfo(sys,'RiseTimeLimits',[0.05,0.95])

S = 

        RiseTime: 7.4519
    SettlingTime: 13.9326
     SettlingMin: 2.3737
     SettlingMax: 2.5203
       Overshoot: 0.8112
      Undershoot: 0
            Peak: 2.5203
        PeakTime: 15.2640

See Also

step, lsiminfo, ltimodels

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS