steady state error command

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

Antworten (2)

Paulo Silva
Paulo Silva am 30 Mär. 2011

11 Stimmen

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 Kommentare

Naufal Indrastoto
Naufal Indrastoto am 31 Mai 2020
I have already tried this and it says undefined function or variable 'sys'. Could please you explain more about it?
Eric Chua
Eric Chua am 31 Mai 2020
sys is your transfer function
HanJie Chong
HanJie Chong am 10 Jun. 2020
Bearbeitet: HanJie Chong am 10 Jun. 2020
The result of this code is already in %?
EXP: 0.4= 40% or 0.4%
Walter Roberson
Walter Roberson am 10 Jun. 2020
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 am 27 Jun. 2020

Thanks, it worked for me

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

Melden Sie sich an, um zu kommentieren.

Mohammad Hosein Forghani
Mohammad Hosein Forghani am 27 Jun. 2020

0 Stimmen

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

Gefragt:

am 30 Mär. 2011

Kommentiert:

am 24 Feb. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by