352
8.
100 00 0
1
0 1 0 1 0 , , (0) 0
232 01 1
t
e
ªºªº ½
½
°° °°
«»«»
®¾ ®¾
«»«»°° °°
¯¿
«»«»
¬¼¬¼ ¯¿
xxuux
Solution
>> A=[1 0 0;0 -1 0;2 3 2]; B=[0 0;1 0;0 1]; x0=[0;0;1]; syms t tau
9.
100 0 0
0 1 0 0 , unit-step function , (0) 1
24 1 2 0
uu
ªºªº ½
°°
«»«»
®¾
«»«» °°
«»«»
¬¼¬¼ ¯¿
xx x
Solution
>> A=[1 0 0;0 1 0;-2 4 -1]; B=[0;0;2]; x0=[0;1;0]; syms t tau
10.
01 0 1
, unit-ramp function , (0)
02 1 0
uu
ªºªº ½
®¾
«»«»
¬¼¬¼ ¯¿
xx x
Solution
>> A=[0 1;0 -2]; B=[0;1]; x0=[1;0]; syms t tau
In Problems 11 and 12, the state-space representation of a system model is provided. Using the formal-solution
approach, find the response
()yt
.
11.
>@
0
01 1 1
, , , 1 1 , sin ,
4 4 2 1
uut
y
ªºªº ½
®®¾
«»«»
¯¬¼¬¼ ¯¿
xAxB
ABC x
Cx
Solution
>> A=[0 1;-4 -4]; B=[1;-2]; C=[1 1]; x0=[1;-1]; syms t tau
>> x=expm(A*t)*x0+int(expm(A*(t-tau))*B*sin(tau),tau,0,t);