CEE Course Support

MATLAB Tutorial Files


Select from the following menu to view files using your Web Browser. You can cut and paste to your MATLAB editor or any Word Processor application if necessary.

The following files replace the old MATLAB tutorial files. All files are stored in PDF format.

Vector Operations Vector operations demo
 Data Import Demos of data import capabilities
 Simple Functions Demonstrates the use of functions in MATLAB
  Numerical Integration Demonstration of simple numerical integration
  Interpolation and Polynomials Demonstration of polynomial and inperpolation operations
  Matrices and Arrays Demonstration of array and matrix manipulations
Random number generators
 2D Graphs and Plots 2D Plots
 3D Graphs and Plots 3D Plot Samples

The file labeled traffic contains data to support sample3d_plot3.m

 First-order ODE Example First-order Cooling model
 First Order Highway Model Files First-order highway development model
Second Order mechanical System Files Classical 2nd order system
 Highway Investment Model Files Third-order Systems Dynamics model
 Car-Following Simulink Models Simple Second-order car following models to demonstrate Simulink
 M/M/1 Simulation Files M/M/1 queueing system simulation
 Deterministic Queue Files Implements a deterministic queueing model based on time dependent supply and demand functions

File ohare_schedule contains sample demand data for Chicago's Airport

Probability Density Function Plots
  • chi.m (computes the area under Chi Square Dist.)
  • chi_plot.m (Executes a general Chi Square distribution with parameter nu)
  • chif.m (function to estimate the first moment of the Chi Square dist.)
  • chis.m (function to estimate the second moment of the Chi Square dist.)
  • fct.m (estimates the factorial of a number)
  • gamma_plot.m (Executes a general Gamma Dist. Plot)
  • gammad.m (computes the area under the curve for the Gamma Dist.)
  • gammadf.m (first moment of the Gamma Dist.)
  • gammads.m (Second Moment of the Gamma Dist.)
  • negex_generator.m (generates negative exp. random variates)
  • negexp_plot.m (Plots the negative exponential dist. with parameter BETA)
  • negexpf.m (first moment of neg. exp. distribution)
  • negexps.m (second moment of neg. exp. distribution)
  • normal.m
  • normal_plot.m (Plots the normal dist. with parameters mu and sigma)
  • normalf.m (first moment of normal dist.)
  • normals.m (second moment of normal dist.)
  • poisson_plot.m (Plot the Poisson dist. with parameter m)
Linear Programming
  • linprog = main linear programming file
  • osaka2 = sample data file to solve the Kansai Contruction Problem
Stochastic Queues M/M/n stochastic queueing equations