This repository contains the material required to support the hands-on that walks you through the basic steps for modeling a physical system in MATLAB/Simulink.
- Sketch out the system on the paper and derive the governing equations.
- Solve the ODE problem in MATLAB.
- Simplify modeling by using Simulink.
- Don't model it, just build it and show it in Simscape.
- Carry out a back-to-back comparison.
- Building a double pendulum is as easy as counting 1,2,3.
- Let's control the pendulum.
- Perpetual motion doesn't exist actually, better off damping the pendulum.
With MATLAB you can design, simulate, and implement controllers for more complicated systems such as an inverted pendulum.
Copy out step_8.slx
into step_9.slx
. Then, use step_9.slx
to develop a controller that will let the pendulum rotate at a constant velocity.
Try to reduce the velocity ripple as much as possible.
To complete the assignment do:
- Generate a copy of this repository into your own account. Tick in the option "include all branches" ✔
- Create the branch
solution
off of the branchmaster
. - Commit into the branch
solution
the following files:- the model
step_9.slx
; - a screenshot of the graph of the angle velocity.
- the model
- Push/sync the changes up to GitHub.
- Create a pull request (PR) with
master
as base branch andsolution
as compare branch. - Request to review your PR 👋 to turn in the assignment.