Last
| Top | Next
Applied
Problem Solving with Matlab (10.317)
List of Matlab Demos
This
page contains a summary list of the Matlab demos available for this
course. The list is organized roughly by lesson number and by the
order that the files are discussed in class. Many of these files
will be discussed in detail in class and they can serve as a guide
for many of the Matlab assignments given throughout the semester.
Careful study of these sample files should introduce you to a variety
of Matlab programming features and also give you a solid understanding
of various problem-solving strategies and techniques discussed over
the course of the semester.
You can view a particular Matlab file or download it by simply clicking
the right mouse button
on the link over the file name. From here you can either choose
"open in new window" to view the file online or "save
target as" to download the file directly to your PC (note that
these commands might differ slightly depending on your choice of
web browser). In any case, once the file is on your machine, you
can run it just like any other Matlab script file -- just make sure
the file names are exactly as indicated here…
| Matlab
Fundamentals
|
| |
Evaluate
and plot the dynamics of the simple linear pendulum discussed
in Lesson 1. |
| |
Generate
some plots for use in Lesson 2. |
| |
Series
of simple function files to demonstrate the use of Matlab functions
as discussed in Lesson 3. |
|
Series
of files to demonstrate various Matlab programming features
discussed in Lesson 3. This example processes summary data concerning
the amount of rainfall in Corvallis, Oregon for over a hundred
years. |
| Introduction
to Numerical Error and Related Topics |
| |
Calculate
negative factors of 2 (eg. 1/2, 1/4, 1/8, ...) as discussed
in Lesson 4. |
| |
Estimate
machine epsilon as discussed in Lesson 4. |
| |
Calculate
approximation to the derivatives of exp(x) at x = 0 for different
step sizes. |
| |
Show trade-off in truncation and round off error when solving
a simple IVP. This file illustrates some key concepts from Lesson
4. |
| Root
Finding, Linear Algebra, and Solution of Linear/Nonlinear
Equations |
| |
Matlab
function files to implement the Bisection and Secant methods
for finding the real roots of a nonlinear equation. These files
illustrate the basic algorithms for the Bracketing and Open
methods discussed in Lesson 5. |
| |
Simple
root finding example for Lesson 5 (uses bisection.m, secant.m,
and Matlab’s built-in fzero
routine). |
| |
Demo
for working with polynomials and roots of polynomials within
Matlab. |
| |
Solution to Problem 1 in Lesson 5: Find the volume and height
of fluid in a horizontal cylindrical tank. |
| |
Solution
to Problem 2 in Lesson 5: Plot equation of state for ammonia
over selected range of pressure and temperature using van der
Waal's equation. |
| |
Solution
to Problem 3 in Lesson 5: Plot implicit solution to a given
IVP. |
|
Solve
for the flow rates in two parallel pipes -- an example of
the linearized iteration method for nonlinear systems of equations. |
| Basic
Statistics and Curve Fitting Techniques |
|
Simple
example of some basic statistics capability in Matlab. |
|
Solution
to curve fitting example problem involving experimental data
for the thermal conductivity of UO2. |
Note:
Additional detailed Illustrative
Applications are also available for each lesson. These
examples have been included in a series of separate files (in pdf
format) that cover a variety of topics, with the full development
of the problem, the implementation of a solution algorithm within
Matlab, and a brief discussion and interpretation of the results
from the analysis. The Matlab programs are embedded as part of the
pdf files (separate m files are not provided) and these represent
a major additional resource for this course. You should definitely
review each of these cases and use them, as appropriate, to help
in your understanding of using Matlab as a problem-solving tool
and as additional examples of the various numerical techniques introduced
throughout the semester. These additional illustrative examples
will also serve as a great resource for your homework assignments
and projects.
Last
updated by Prof. John R. White (Sept. 2005)
Last
| Top | Next
|