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

1,255 views (last 30 days)
G(s)=5/s^2+2s+25
  1 Comment
SARATHRAJ V
SARATHRAJ V on 13 Feb 2022
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');

Sign in to comment.

Answers (4)

Arkadiy Turevskiy
Arkadiy Turevskiy on 26 Nov 2014
Edited: Arkadiy Turevskiy on 26 Nov 2014
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:
  3 Comments

Sign in to comment.


Miswar Syed
Miswar Syed on 8 Apr 2020
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 Comments

Sign in to comment.


Ur rehman Waheed
Ur rehman Waheed on 16 Apr 2020
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 on 1 Nov 2019
i need to find position constant of this

Community Treasure Hunt

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

Start Hunting!