ME 1020 Engineering Programming with MATLAB Handout 10 ...

14
ME 1020 Engineering Programming with MATLAB Handout 10 Chapter 10 Homework: 10.5, 10.8, 10.10, 10.12, 10.16, 10.19, 10.23, 10.30

Transcript of ME 1020 Engineering Programming with MATLAB Handout 10 ...

Page 1: ME 1020 Engineering Programming with MATLAB Handout 10 ...

ME 1020 Engineering Programming with MATLAB

Handout 10

Chapter 10 Homework: 10.5, 10.8, 10.10, 10.12, 10.16, 10.19, 10.23, 10.30

Page 2: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 3: ME 1020 Engineering Programming with MATLAB Handout 10 ...

Volume as a function of tank height:

𝑉 = ℎ𝐴

Take the derivative of both sides (𝐴 = constant):

𝑑𝑉

𝑑𝑡=𝑑ℎ

𝑑𝑡𝐴

Solve for the rate of change of the height of liquid in the tank:

𝑑ℎ

𝑑𝑡= (

1

𝐴)𝑑𝑉

𝑑𝑡

ℎ̇ = (1

𝐴) �̇�

where �̇� is the volumetric flow rate of liquid into the tank.

Use the State-Space approach:

Page 4: ME 1020 Engineering Programming with MATLAB Handout 10 ...

[�̇�1�̇�2] = [

−6 45 −7

] [𝑥1𝑥2] + [

1 00 1

] [𝑓1(𝑡)𝑓2(𝑡)

]

�̇� = 𝐀𝐱 + 𝐁𝑢

[𝑦1𝑦2] = [

1 00 1

] [𝑥1𝑥2] + [

0 00 0

] [𝑓1(𝑡)𝑓2(𝑡)

]

𝐲 = 𝐂𝐱 + 𝐃𝐮

Page 5: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 6: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 7: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 8: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 9: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 10: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 11: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 12: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 13: ME 1020 Engineering Programming with MATLAB Handout 10 ...
Page 14: ME 1020 Engineering Programming with MATLAB Handout 10 ...