All lab-related codes and some sample implementations are available in this repository
lab_1_euler.m
-> for the first lab sample code implementation for solving ode problemsODE_methods_Lab1.mlx
-> First lab: Euler's method, RK2, RK4ODE_methods_Lab2.mlx
-> Second lab: Pendulum example (RK4, ode45)lab_live_scripts_usage.mlx
-> live scripts usage examplesplotcartpend.m
-> Simulate cart pendulum
Usage:
for k=1:length(t)
plotcartpend(X(k,:)); % X = [x, x_dot, theta, theta_dot]
end- Pole placement and LQR implementation for inverted pendulum
- Model Predictive Control