How to get the settling time of the plot

7 ビュー (過去 30 日間)
RJS
RJS 2021 年 11 月 19 日
コメント済み: RJS 2021 年 11 月 30 日
here I have state space model
A =[0 1;-30 -1.2]
B =[0;30]
C=[1 0];
G=ss(A,B,C,[]);
t = [0:0.001:5]';
[y, t, x] = step(G,t)
plot(t, x(:,1))
now how can i get settling time and rise time of this plot?

回答 (1 件)

Mathieu NOE
Mathieu NOE 2021 年 11 月 19 日
hello
with stepinfo, you have access to all the info's :
A =[0 1;-30 -1.2];
B =[0;30];
C=[1 0];
G=ss(A,B,C,[]);
stepinfo(G)
ans =
struct with fields:
RiseTime: 0.207388987205853
SettlingTime: 6.429183012079071
SettlingMin: 0.500017169365977
SettlingMax: 1.707223152671701
Overshoot: 70.722315267170117
Undershoot: 0
Peak: 1.707223152671701
  5 件のコメント
Star Strider
Star Strider 2021 年 11 月 29 日
If ‘C=[1 1]’ it may not be possible.
RJS
RJS 2021 年 11 月 30 日
okay ,thanks for your response

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by