28. What does it have to do with my ODE model? Model Initial value Step Time step
29.
30.
31.
32. From paper to MATLAB Identify state variables, parameters, inputs. Define equations and parameter values. Define initial values, call functions, plot results.
39. Magic word: Function 0.5 p = 0.02 20 x0 = 30 0 0 time = 0.1 0.2 … 1 dxdt = 3x11 t0 t1 t2 x1 x2 x3 t3 … t10
40. Summary: model function data IN OUT Row vector Row vector Matrix 20 x0 = 30 0 0 time = 0.1 0.2 … 1 dxdt = 11x3 x1 x2 x3 t0 t1 t2 t3 … t10
41. 0 t = 0.1 0.2 … 1 x = 11x3 x1 x2 x3 t0 t1 t2 t3 … t10
42. Summary: script data IN OUT Row vector Row vector Matrix Row vector 20 x0 = 30 0 0 time = 0.1 0.2 … 1 x = 11x3 x1 x2 x3 t0 t1 t2 t3 … t10 0 t = 0.1 0.2 … 1
43. From paper to MATLAB Identify state variables, parameters, inputs. Define equations and parameter values. Define initial values, call functions, plot results.
White box: Derive a model from first principles. If not possible then we have to do system identification: Black box: No prior model available. Grey box: you understand the physics of your system: you can specify an explicit mathematical model but you don’t know the parameters values
An ODE describes the rate of change of a dependant variable with respect to an independent variable. The unknown element is a function. The information we have is on its derivatives.
An analytical method gives the solution as a mathematical formula, which is an advantage. From this we can gain insight in the behavior and the properties of the solution, and with a numerical solution (that gives the function as a table) this is not the case
Write it on the blackboard
Show in blackboard how it would be if passing individual variables.