MATLAB Answers

What is the range for 'SettlingTimeThreshold' in stepinfo?

10 views (last 30 days)
Onn Lim Yong
Onn Lim Yong on 20 Sep 2017
Answered: Suze Zhang on 22 Sep 2017
I want to look at Settling Time Threshold of 0.0001(0.01%) but it splits out NaN.

Accepted Answer

Suze Zhang
Suze Zhang on 22 Sep 2017
Hi Onn Lim,
From the documentation for function "stepinfo", the function input "SettlingTimeThreshold" should be a scalar between value 0 and 1. In your case, the value 0.0001 is within the accepted range. However, the NaN value of the settling time could be that there is not a finite time which takes for the error y(t) - yfinal between the response y(t) and the steady-state response yfinal to fall to within 0.01% of yfinal for the dynamic system that passed into the "stepinfo" function.
The following system "sys" is from an example on the Documentation page for function "stepinfo":
A = [0.68 -0.34; 0.34 0.68];
B = [0.18 -0.05; 0.04 0.11];
C = [0 -1.53; -1.12 -1.10];
D = [0 0; 0.06 -0.37];
sys = ss(A,B,C,D,0.2);
It can be seen that changing the "SetllingTimeThreshold" to 0.0001 for this case the values of "SettlingTime" are not NaN:
S1 = stepinfo(sys,'SettlingTimeThreshold',0.0001)

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by