How to set risetime thresholds in stepinfo function

7 ビュー (過去 30 日間)
Elvis Lee
Elvis Lee 2023 年 4 月 6 日
コメント済み: Star Strider 2023 年 4 月 6 日
Hi there,
i am measuing the performance of a control system and using the function 'stepinfo' to do so. On the documentation, it says that the default threshold for the risetime is 10%-90%, but it can be changed. I have tried many different ways and cant find out actually how to change these values. i am trying to set them from 0%-100% which the documentation says is possible.
Any ideas?

採用された回答

Star Strider
Star Strider 2023 年 4 月 6 日
Try something like this —
sys = tf([1 5 5],[1 1.65 5 6.5 2]);
step(sys)
si = stepinfo(sys, 'RiseTimeThreshold',[0 1])
si = struct with fields:
RiseTime: 4.8143 TransientTime: 27.9762 SettlingTime: 27.9762 SettlingMin: 2.0689 SettlingMax: 2.6873 Overshoot: 7.4915 Undershoot: 0 Peak: 2.6873 PeakTime: 8.0530
This is illustrated in the documentation, however not well documented in the Input Argmuments section.
.
  2 件のコメント
Elvis Lee
Elvis Lee 2023 年 4 月 6 日
thanks, that works great :)
Star Strider
Star Strider 2023 年 4 月 6 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Control System Toolbox についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by