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
2011년 3월 30일
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
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
2020년 5월 31일
sys is your transfer function
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
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
2020년 6월 27일
Thanks, it worked for me
irshad maz
2021년 1월 14일
what is SP stand for Sir
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
2020년 6월 27일
0 개 추천
Another approach theoretically would be final value theorem, I might also implement that in MATLAB.
카테고리
도움말 센터 및 File Exchange에서 Tuning Goals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!