Professional Documents
Culture Documents
Step Response of Type 1 System and Ramp Input Error Evaluation
Step Response of Type 1 System and Ramp Input Error Evaluation
Error Evaluation
>> clear
>> s=tf('s');
>> G=(5*s+90)/(s*(s+4.69)*(s^2+3.42*s+16.45))
G=
5 s + 90
------------------------------------
>>stepplot(G);
>> T = feedback(G,1);
t = 0:0.1:25;
u = t;
[y,t,x] = lsim(T,u,t);
plot(t,y,'y',t,u,'m')
>> syms s
>> limit((5*s+90)/(s*(s+4.69)*(s^2+3.42*s+16.45)),s,0)
ans =
NaN
>> Kp=ans
Kp =
NaN
>> Ka=limit((s^2)*(5*s+90)/(s*(s+4.69)*(s^2+3.42*s+16.45)),s,0)
Ka =
>> sserror1=1/Kp
sserror1 =
NaN
>> Kv=limit((s^1)*(5*s+90)/(s*(s+4.69)*(s^2+3.42*s+16.45)),s,0)
Kv =
180000/154301
>> sserror=1/Kv
sserror=
Step Response
100
90
80
70
60
Amplitude
50
40
30
20
10
0
0 10 20 30 40 50 60 70 80
Time (seconds)
25
20
15
10
0
0 5 10 15 20 25