blob: ed24c9521a8f4d2bc93e60c6054814c8bbce044d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc;
s = %s;
G = syslin('c',100/(s*(s+10)));
H = syslin('c',1/(s+5));
syms t s;
R = laplace(1,t,s);
E = R/(1+G*H);
sse = limit(s*E,s,0);disp(sse,"steady state error for step input:");
R1 = laplace(t,t,s);
E = R1/(1+G*H);
sse = limit(s*E,s,0);disp(sse,"steady state error for ramp input:");
|