main content

numeric values of time-凯发k8网页登录

this example shows how to obtain numeric values of step response characteristics such as rise time, settling time, and overshoot using stepinfo. you can use similar techniques with lsiminfo to obtain characteristics of the system response to an arbitrary input or initial conditions.

create a dynamic system model and get numeric values of the system’s step response characteristics.

h = tf([8 18 32],[1 6 14 24]);
data = stepinfo(h)
data = struct with fields:
         risetime: 0.2087
    transienttime: 3.4972
     settlingtime: 3.4972
      settlingmin: 1.1956
      settlingmax: 1.6871
        overshoot: 26.5302
       undershoot: 0
             peak: 1.6871
         peaktime: 0.5987

the output is a structure that contains values for several step response characteristics. to access these values or refer to them in other calculations, use dot notation. for example, data.overshoot is the overshoot value.

calculate the time it takes the step response of h to settle within 0.5% of its final value.

data = stepinfo(h,'settlingtimethreshold',0.005);
t05 = data.settlingtime
t05 = 4.8896

by default, stepinfo defines the settling time as the time it takes for the output to settle within 0.02 (2%) of its final value. specifying a more stringent 'settlingtimethreshold' of 0.005 results in a longer settling time.

for more information about the options and the characteristics, see the stepinfo reference page.

see also

|

related examples

more about

    网站地图