steady state error command

Is there a command that will give the steady state error of the the response of a transfer function

回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 3 月 30 日

11 投票

SP=5; %input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*sys); %get the response of the system to a step with amplitude SP
sserror=abs(SP-y(end)) %get the steady state error

7 件のコメント

Naufal Indrastoto
Naufal Indrastoto 2020 年 5 月 31 日
I have already tried this and it says undefined function or variable 'sys'. Could please you explain more about it?
Eric Chua
Eric Chua 2020 年 5 月 31 日
sys is your transfer function
HanJie Chong
HanJie Chong 2020 年 6 月 10 日
編集済み: HanJie Chong 2020 年 6 月 10 日
The result of this code is already in %?
EXP: 0.4= 40% or 0.4%
Walter Roberson
Walter Roberson 2020 年 6 月 10 日
No, sserror would be absolute value, not relative value. You would have to divide by SP to get relative value as a fraction, which you could then multiply by 100 to get percentage.
Mohammad Hosein Forghani
Mohammad Hosein Forghani 2020 年 6 月 27 日

Thanks, it worked for me

irshad maz
irshad maz 2021 年 1 月 14 日
what is SP stand for Sir
JAMES KEEN
JAMES KEEN 2021 年 2 月 24 日
@irshad maz I believe it means setpoint i.e. the point of which you want the system response to settles at.

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

Mohammad Hosein Forghani
Mohammad Hosein Forghani 2020 年 6 月 27 日

0 投票

Another approach theoretically would be final value theorem, I might also implement that in MATLAB.

質問済み:

2011 年 3 月 30 日

コメント済み:

2021 年 2 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by