title: Matlab Stepinfo Function
body: <pre><code>S = stepinfo(Y,T,180,'SettlingTimeThreshold',ST) ;
  
  ts=S.SettlingTime;
  </code></pre>
  
  <p>in this does it mean ts is the time at which |Y-180| becomes less than ( ST/100 )or something else...
  in my code though |Y-180| is less than ST/100 but i am getting ts = NAN;
  pls help me out</p>
  
  <p>My code:</p>
  
  <pre><code>if ee(end)&gt;160
  
      S = stepinfo(ee,times,180,'SettlingTimeThreshold',0.01);
  
  else
  
      S = stepinfo(ee,times,0.5,'SettlingTimeThreshold',1);
  
  end
  
  settling_time = S.SettlingTime;
  
  end
  </code></pre>
  
  <p>where 'ee' is an array of values at each 'times'</p>
  
  <p>ee is basically error angle which becomes 180 or 0 after some time..
  thanks</p>