You are on page 1of 2

ENCH 617 - MODELLING AND IDENTIFICATION FOR

ADVANCED CONTROL

TUTORIAL #1 - To be held 4:00 – 5:15 PM on September 10, 2021.

1. A linear regression model is to be developed between the thermal conductivity and


temperature of a gas. Data collected over the temperature range 250 – 850 K are as follows
(y  thermal conductivity in W cm-1 K-1, x  temperature in K):

x 250 300 350 400 450 500 550 600 650 700 750 800 850
y .445 .362 .302 .256 .223 .197 .176 .158 .144 .132 .121 .112 .103

Write a MATLAB program (in an m-file) which fits a first-order polynomial y  A  B x


to these results using the polyfit function.

2. Consider the system of linear equations

3 x1  7 x 2  5 x3  20 x 4  4 x5  96
x1  2 x 2  3 x3  9 x 4  10 x5  67
5 x1  x 2  16 x3  4 x 4  6 x5  124
2 x1  2 x 2  x3  x 4  18 x5  73
x1  3 x 2  x3  5 x 4  2 x5  19

Write a MATLAB program to determine the unknowns x1 through x5 by matrix inversion.

3. Consider the function f ( x)  x 3  0.1381x 2  5.402103 x  2.088 104. Write a


MATLAB program which finds a root of f ( x)  0 using the Newton-Raphson method
with initial guess x  0.1.
4. Consider the first-order ODE:

d y ( x)
(1  x 2 )1 / 2  y ( x )  x, x  0, y (0)  0
dx

This differential equation may be rewritten as

d y ( x) x  y ( x)

dx (1  x 2 )1 / 2

The analytical solution is

y ( x) 
1
x

ln x  1  x 2  
2 x  1  x2 

(a) Create a Simulink model which integrates the above differential equation over the
interval x  [0, 0.1] using Euler’s method with step size h = 0.01. Write a MATLAB
program (in an m-file) which plots the estimated and actual y against x and computes the
solution error at each stage in the integration.

(b) Repeat part (a) using the fourth-order Runge-Kutta numerical integration technique.

You might also like