Numerical Solution of ODE (NMNV539) — Practicals (Winter Semester 2023/2024)
This class will explore the use of the numerical methods for the solution of ODEs using MATLAB.
Practicals
Tuesday 15:40 – 17:10, K11 Sokolovská 83 Karlín
Introduction to MATLAB
The following notes provide a brief introduction to MATLAB:
The practicals for this course take place in the K11 computer laboratory, which has access to MATLAB.
If you wish to acess MATLAB from your own computer the university has a Total Academic Headcount MATLAB license, which allows you to install MATLAB locally on your machine. Alternatively, with this license you can use MATLAB Online, which allows you to access a (lightweight) instance of MATLAB directly in your web browser; this should be sufficient for this course.
In order to install MATLAB locally, or access MATLAB Online, you must register for a MathWorks account using an email address ending with cuni.cz. Detailed instructions are available at cuni.cz/UKEN-1270.html.
MATLAB Exercises
MATLAB files and materials for the exercises can be found below or on the following Windows share location:
V:\Katedra numerické matematiky\Congreve Scott\WS2023_ODE
-
03.10.2023:
- Exercises
- dirfield.m; logistic.m; oscillator.m; pendulum.m; (Zip Archive)
- Solutions: Question 2; Question 3; Question 4; Question 5;
- 10.10.2023:
- 17.10.2023:
- 24.10.2023:
-
31.10.2023:
- Exercises
- linsystem.m; ode12.m; ode12_1.m; ode12_2.m; ode23_orig.m; (Zip Archive)
- Solutions: Question 1; Question 2;
-
07.11.2023:
- Exercises
- conv_analysis.m; gauss2.m; lin1p.m; logistic.m; rk_classical.m; run_gauss2.m; (Zip Archive)
- Solutions: Question 1; Question 2; Question 3;
-
14.11.2023:
- Exercises
- ab2.m; ab3.m; am2.m; am2_mod.m; conv_analysis.m; eul.m; linsystem.m; logistic.m; oscillator.m; rk_classical.m; run_ab.m; (Zip Archive)
- Solutions: Question 1; Question 2; Question 3;
-
21.11.2023:
- Exercises
- ab2.m; ab3.m; am2.m; conv_analysis.m; linsystem.m; logistic.m; ms2.m; ny2.m; ny3.m; oscillator.m; rk_classical.m; run_ny.m; (Zip Archive)
- Solutions: Question 1; Question 2;
-
28.11.2023:
- Exercises
- am2.m; bdf2.m; bdf3.m; conv_analysis.m; eul.m; linsystem.m; logistic.m; oscillator.m; pred_corr.m; rk_classical.m; run_bdf.m; run_pred_corr.m; sat_ode.m; (Zip Archive)
- Solutions: Question 1;
-
05.12.2023:
- Exercises
- run_vdpol.m; run_vdpol_linear.m; vdpol.m; vdpol_limit.m; vdpol_linear.m; vdpol_steady.m; (Zip Archive)
- Solutions: Question 1; Question 2;
- 12.12.2023:
- 19.12.2023:
Homework
There will be two homeworks during the course of the year. Obtaining credit for this course will involve completion of these homeworks.
- Homework 1 - Implicit RK (Deadline: 28.11.2023). Supporting MATLAB scripts are available here.
- Homework 2 - Predicator/Corrector (Deadline: 05.01.2024). Supporting MATLAB scripts are available here.