MATLAB links and programs



  • Here is a link to the OIT Computer Classrooms website that will help you gain free (if you are a UMass student) access to Matlab.

  • The MATLAB scripts used in this texbook can be downloaded by clicking here.

  • Here are a few PDF files and links for help with MATLAB:
    MATLAB Basics Tutorial
    MATLAB Primer and its PDF version (by Kermit Sigmon)
    MATLAB Tutorial (PDF) (by Peter Turner of Clarkson University)
    MATLAB Tutorial (PDF) (by Monica Nitsche of the University of New Mexico)
    MATLAB Plotting Guide (PDF) (from MSCC, University of Washington, 1996)
    MATLAB Help Desk at the MathWorks site.

  • Below are some programs which we (may) use as examples during the lectures. The timing listed below is tentative and subject to change based on the pace of the class.

    Weeks 1 and 2:
    "example_sum.m": This script computes a sum.
    "example_hilbert.m": This script calculates the matrix elements of the Hilbert matrix.
    "my_sum.m": This function computes the sum of all the components of a given input vector.
    "dr_forward_diff.m" This script approximates the first derivative of a function using a forward difference scheme.
    "dr_forward_diff_NEW.m" This is an UPDATED version (as done in class) of the script which approximates the first derivative of a function using a forward difference scheme.

    Week 3:
    "dr_func_probe.m": Example/driver for probing functions. (We did not have time to implement this in class. Just one the balckboard. This graphs the functions and helps you find what initial intervals to set when fiding a root.)
    "dr_bisect.m": Example/driver for the bisection method. Note this calls the bisect function, defined in bisect.m, which is located in the textbook MATLAB scripts. So make sure your current directory contains bisect.m file.
    "dr_fixed_point.m": Example/driver for fixed point iterations.
    "fixed_point.m": The actual MATLAB function for fixed point iterations.
    "dr_fixed_point.NEW.m" This is an UPDATED version (as done in class) of the example/driver which uses the fixed point method sucessfully and unsuccessfully (as well as bisect) for the cosh example.

    Weeks 4 and 5:
    "dr_newton.m": Example/driver for Newton's method.
    "newton.m": The actual MATLAB function employing Newton's method (a very simple implementation).
    "dr_critical.m": Example/driver for finding critical points of an objective function using Newton's method.
    "dr_lec_sys.m": Example/driver for systems of equations (vector equations) using Newton's method.
    "newtons.m": The MATLAB function employing Newton's method for systems ofequations.
    "func.m": The MATLAB function containing the nonlinear equations to be solved together with the associated Jacobian matrix.

    Week 6:
    "backsub.m": The script for backward substitution
    "forsub.m": script for forward substitution.
    the MATLAB driver can be downloaded by clicking here.