blob: 0ad6711878bd81c70b3b45369cb9d7021f4eced1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc;
A = [-5 1 0;0 -2 1;20 -10 1];
C = [-1 1 0];
B = [0;0;1];
a= inv(A);
syms t k;
t = 1/k;
x = (1+C*a*B);
y = (C*(a^2)*B);
disp(x,"steady state error due to step input:");
z = x*t + y;
sse = limit(z,k,0);
disp(sse,"steady state error due to ramp input:");
|