Scientific & Engineering Programming
II Year Electronics and Computer Engineering, FoE, WUST
Laboratory Class 10 – ODEs in Matlab
The scope
To get familiar with ordinary differential equations in Matlab, methods for solving them, to perform basic results visualization and analysis.
Prerequisites
Before the classes you should know, how to:
• represent and define differential equations,
• solve numerically differential equations,
• visualize solution of the differential equation,
• model simple physical systems.
Tasks
1. Exercise the plots from the task 11, Lab Class 9, if not done earlier.
2. Solve the second order differential equation
y 00 (x) + py 0 (x) + qy(x) = 0
for different values of p and q parameters. What is the influence of the sign of the character- istic equation discriminant (D = p 2 − 4q) to the solution? Visualize the obtained results.
3. Solve the set of equations
( dx
1