Modeling and Programming
Overall Course Objectives
This course provides a basic introduction to MATLAB programming and the application of physical and electrical laws to develop mathematical models in mechanical or electrical engineering.
See course description in Danish
Learning Objectives
- Write MATLAB programs using conditional statements, loops, functions, and arrays.
- Solve differential equations in the time domain using MATLAB’s ODE45 solver.
- Use Simulink to model and solve differential equations graphically.
- Apply the MATLAB Symbolic Math Toolbox to manipulate and solve equations.
- Derive governing equations for electrical or mechanical systems.
- Convert higher-order differential equations into sets of first-order equations.
- Determine if a system is linear or nonlinear and perform linearization of nonlinear systems.
- Collaborate on programming projects in teams.
- Write technical reports with clear structure, graphics, and well-documented MATLAB code.
Course Content
MATLAB programming: conditions, loops, functions, arrays, plots, file handling. Physical and electrical laws: Newton’s 2nd law, Kirchhoff’s circuit law. Numerical methods: Euler’s method, ODE45, Simulink. State-space formulation. Linearization.
Possible start times
- 6 – 20 (Tues 13-17)
Teaching Method
The teaching method is a combination of lectures, group and individual programming and modeling tasks with software on students’ own computer as well as problem solving.
Software: MATLAB/Simulink.
Faculty
Remarks
Section of Mechanical Technology
Mechanical Engineering, Ballerup: 2. semester
Electrical Engineering, Ballerup: 2. semester




