Whats is wrong with my stepinfo function?How can I get numerical values instead of [1*1sym] and inf for below parameters?

1 回表示 (過去 30 日間)
My code is in attached file .m file. Whenever i run my script to find stepinfo ,it gives me below error. What can be the reason of it? The peaking time os correct though
RiseTime: [1x1 sym]
SettlingTime: [1x1 sym]
SettlingMin: [1x1 sym]
SettlingMax: [1x1 sym]
Overshoot: Inf
Undershoot: Inf
Peak: [1x1 sym]
PeakTime: 7.7714e-09
EDIT: After adding Tn = structfun(@double,S1)
my answer is as
Tn =
0.0000
0.0000
-0.0457
0.0003
Inf
Inf
0.4031
0.0000

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 4 月 16 日
The only error I see is a warning about extra legend entries, which occurs because you are only plotting da3t but are asking to legend() for all 3 DAs.
Alternate code:
plot (time * 1e9, [da1t.', da2t.', da3t.'], 'LineWidth' , 2);
  1 件のコメント
Syed Adeel
Syed Adeel 2020 年 4 月 16 日
My question is how can i get nuerical values instead of [1*1sym] in below
RiseTime: [1x1 sym]
SettlingTime: [1x1 sym]
SettlingMin: [1x1 sym]
SettlingMax: [1x1 sym]
Overshoot: Inf
Undershoot: Inf
Peak: [1x1 sym]
PeakTime: 7.7714e-09

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

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by