Question

The state space model of an interconnected three tank water storage system is given by the following equation: -3 1 0 1rh dt

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

c) The eigenvalues of the system matrix , are equal to the poles of the transfer function.

So we type following code in MATLAB:

poles = eig(A)

Output:

poles =

-5.0000
-3.0000
-1.0000

It is very cumbersome job to find out output by hand so we can determine output with the help of MATLAB with below code:

Note: 1. According to HOMEWORKLIB RULES, we are supposed to do only first four sub-parts of any question but anyways.
2. This is not the only method.

Code:

A = [ -3 1 0; 2 -3 2; 0 1 -3 ];
B = [ 1 0 0 ; 0 1 0; 0 0 1];
C = [ 2 0 0; 0 2 0; 0 0 2 ];
D = [ 0 0 0; 0 0 0; 0 0 0 ];
G=ss(A,B,C,D);
U=[1/s; 2/s; 1/s]

G=tf(G);

g1=G(1,1)

%g1 =

%(2 s^2 + 12 s + 14)/(s^3 + 9 s^2 + 23 s + 15)

syms s

>> g1= (2*s^2 + 12*s + 14)/( s^3 + 9*s^2 + 23*s + 15);

>> G(1,2)

ans =

2 s + 6
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g2=(2*s + 6)/( s^3 + 9*s^2 + 23*s + 15);

>> G(1,3)

ans =

4
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g3=4/( s^3 + 9*s^2 + 23*s + 15);

>> G(2,1)

ans =

4 s + 12
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g4=(4*s + 12)/( s^3 + 9*s^2 + 23*s + 15);

>> G(2,2)

ans =

2 s^2 + 12 s + 18
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g5=(2*s^2 + 12*s + 18)/( s^3 + 9*s^2 + 23*s + 15)

>> G(2,3)

ans =

4 s + 12
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g6=(4*s + 12)/( s^3 + 9*s^2 + 23*s + 15)

>> G(3,1)

ans =

4
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g7=4/( s^3 + 9*s^2 + 23*s + 15)

>> G(3,2)

ans =

2 s + 6
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.


>> g8=(2*s + 6)/( s^3 + 9*s^2 + 23*s + 15)
>> G(3,3)

ans =

2 s^2 + 12 s + 14
-----------------------
s^3 + 9 s^2 + 23 s + 15

Continuous-time transfer function.

>> g9=(2*s^2 + 12*s + 14)/( s^3 + 9*s^2 + 23*s + 15)
>> g=[g1 g2 g3; g4 g5 g6; g7 g8 g9]

g =

[ (2*s^2 + 12*s + 14)/(s^3 + 9*s^2 + 23*s + 15), (2*s + 6)/(s^3 + 9*s^2 + 23*s + 15), 4/(s^3 + 9*s^2 + 23*s + 15)]
[ (4*s + 12)/(s^3 + 9*s^2 + 23*s + 15), (2*s^2 + 12*s + 18)/(s^3 + 9*s^2 + 23*s + 15), (4*s + 12)/(s^3 + 9*s^2 + 23*s + 15)]
[ (2*s + 6)/(s^3 + 9*s^2 + 23*s + 15), (2*s + 6)/(s^3 + 9*s^2 + 23*s + 15), (2*s^2 + 12*s + 14)/(s^3 + 9*s^2 + 23*s + 15)]

>> y=g*u
Undefined function or variable 'u'.

>> u=[1/s; 2/s; 1/s]

u =

1/s
2/s
1/s

>> y=g*u

y =

4/(s*(s^3 + 9*s^2 + 23*s + 15)) + (2*s^2 + 12*s + 14)/(s*(s^3 + 9*s^2 + 23*s + 15)) + (2*(2*s + 6))/(s*(s^3 + 9*s^2 + 23*s + 15))
(2*(2*s^2 + 12*s + 18))/(s*(s^3 + 9*s^2 + 23*s + 15)) + (2*(4*s + 12))/(s*(s^3 + 9*s^2 + 23*s + 15))
(2*s^2 + 12*s + 14)/(s*(s^3 + 9*s^2 + 23*s + 15)) + (3*(2*s + 6))/(s*(s^3 + 9*s^2 + 23*s + 15))

>> ilaplace(y)

ans =

2 - 2*exp(-t)
4 - 4*exp(-t)
exp(-5*t)/5 - exp(-3*t)/3 - 2*exp(-t) + 32/15


   

Add a comment
Know the answer?
Add Answer to:
The state space model of an interconnected three tank water storage system is given by the following equation: -3 1 0 1rh dt os lo 0 3] 10 1-3 The heights of water in the tanks are, respectively,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT