필터 지우기
필터 지우기

How to find steady-error value from the response graph? is there any command to find the steady state error from the response graph?

조회 수: 281 (최근 30일)
G(s)=5/s^2+2s+25
  댓글 수: 1
SARATHRAJ V
SARATHRAJ V 2022년 2월 13일
s = tf('s');
sys=input('enter the funtion' );
Unable to run the 'fevalJSON' function because it calls the 'input' function, which is not supported for this product offering.
[y,t]=step(sys);
y(length(y))
plot(t,y);
xlabel('Time (sec)');
ylabel('Amplitude');
title('step responce');

댓글을 달려면 로그인하십시오.

답변 (4개)

Arkadiy Turevskiy
Arkadiy Turevskiy 2014년 11월 26일
편집: Arkadiy Turevskiy 2014년 11월 26일
Your question is not formulated clearly. Did you mean steady-state value, not "steady-error value"? Assuming that's what you meant, the next clarification is steady-state value of a transfer function in response to what - is it in response to a step input?
If that's what you meant, then yes, you can do this like that:
>> s=tf('s');
>> sys=5/(s^2+2*s+25);
>> [y,t]=step(sys);
>> y(length(y))
ans =
0.20
You can also right click on a step plot, "Charecteristics", "Steady-state", as shown below:
  댓글 수: 4
Arkadiy Turevskiy
Arkadiy Turevskiy 2024년 6월 14일
My answer above us using Control System Toolbox.
To get a step plot in MATLAB do this:
s=tf('s');
sys=5/(s^2+2*s+25);
step(sys);

댓글을 달려면 로그인하십시오.


Miswar Syed
Miswar Syed 2020년 4월 8일
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
  댓글 수: 3
Catherine Callaghan
Catherine Callaghan 2021년 2월 6일
What would I set SP to if I wanted to represent a ramp input and parabolic input? Thanks.

댓글을 달려면 로그인하십시오.


Ur rehman Waheed
Ur rehman Waheed 2020년 4월 16일
matlab command to find steadt state error from step response graph in matlab
>> sserror=(SP-(y1.data(end,end)))
where SP value is one when input is step input. y1 shows workspace value of step response. normally it comes during simulation from simulink.

Amit Borole
Amit Borole 2019년 11월 1일
i need to find position constant of this

카테고리

Help CenterFile Exchange에서 Time and Frequency Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by