Design and Analysis of Dynamic Systems
ME 530.343

MATLAB Information

Matlab, which stands for MATrix LABoratory, will be used extensively in the course. Matlab is available to you on the PCs in the HAC Lab, 160 Krieger Hall.

You should have learned something about Matlab and Numerical Computing in 530.106 Computing in Mechanical Engineering. Although I will provide a quick tutorials in class, no amount of Matlab demonstration in class will teach you how to use this valuable tool. You will need to try it for yourself. If you need to brush up, some suggested web tutorials are:

The Palm textbook has many useful Matlab examples and instructions. Note that you can also type "help xxx" at the command line to get more information about a particular command. "xxx" could be replaced by "plot", "subplot", "exp", etc.

The following files can be downloaded for reference:

Lecture Files Description
3
fit_example.m
Example of fitting linear models to data.
7
bungee.m
Plotting the solution to a second order system that models bungee jumping. Using system parameters to figure out if I will die while bungee jumping.
13
my_func.m
first_order.m
Example of using Matlab's numerical differential equation solver (ODE45) to find the solution to a first order system.
13
pendulum.m
pend_sol.m
Example of using Matlab's numerical differential equation solver (ODE45) to find the solution to a second order system, both linear and nonlinear versions.
14
simulink_demo.mdl
sym_ex.m
Simulink demonstration. The .mdl is the model that can be opened and edited via graphical user interface (GUI) in simulink.
25
control_examples.m Code for plotting the response of a system to a step input, using various PID controllers. Some parts of this code require the Matlab control systems toolbox.
30
direct_example.m Example of direct solution to plot the response of a 2-dof coupled system. Uses the Matlab function eig.
30
ode_example.m
disk_model.m
Example of using Matlab's numerical differential equation solver (ODE45) to find the solution to a 2-dof second order system. Should give the exact same response as the code above; just a different approach.


aokamura@jhu.edu