Math 485 -- Mathematical Modeling
This page provides links to code used during lecture demonstrations and for homework assignments.
MATLAB
To run these programs at home, you may need to download and install MATLAB. The University has a site license which lets students and faculty use this software for free.MATLAB is already installed at these campus locations.
Programs
- Logistic map:
- logistic.m
Usage: logistic(0.5,1.5,0.1) will plot the bifurcation diagram for 0.5 <= a <= 1.5 at increments of 0.1. You can edit the program to control its detailed behavior. - logiter.m
Usage: logiter(3.2,2) will graph the 2nd iterate of the logistic map with a=3.2. - logorbit.m
Usage: logorbit(3.2,0.1,100) generates the orbit [x0 x1 ... xn] for the logistic map with a=3.2. - fit.m
Usage: [M,B]=fit(X,Y) computes the least squares fit of the data in vector X and Y. M is the slope of the best fit, while B is the Y-intercept.
- logistic.m
- ODE software
by John
Polking:
These are two independent programs. To run pplane7, download the file "pplane7" and start MATLAB in the same directory, then type pplane7 at the prompt. You should get a window showing the simulation. Similar instructions apply to dfield7.If you cannot run these programs, try the Java versions. These should run directly in your browser. You will need to make sure that Java applets are enabled.
- Stadium wave code
by Joceline
Lega:
You will need both files. To run, download the code and start MATLAB in the same directory, then type LaOla at the prompt. You should get a window showing the simulation.
Return to the course home page