Matlab is proprietary. You can buy a student version of it for much less than I have to pay for it; around $120. If you're in the math department, you have access to matlab on the computer "sphere". Log in to coxeter and from there log in to sphere. If you aren't in the math department then you have to hope that matlab's installed on the machine you have access to.

There are various free matlab clones that you can install on your computer if you wish.

That primer is short and sweet. Matworks now has a free primer too --- here's the link to it. It's the more modern one and so give it a try. Here's Christina C. Christara and Winky Wai's matlab guide.

Here's Cleve Moler's "Introduction to MATLAB" chapter from his book Numerical Computing with MATLAB. Note that you can get the book as free pdf files on a chapter-by-chapter basis.

Here is your first homework assignment. Due by 4pm on Friday January 29.

Here are the files that I used to approximate the Laplacian with various different boundary conditions.

Here are the two scripts I used towards the end of class on January 27 demonstrating numerical instability for Forward Euler time-stepping: FE_unstable_demo.m and FE_unstable_power_spectrum_demo.m. They refer to the heat equation codes you can find here. Also, to compute the power spectrum, you'll need find_spec.m.

Here is your second homework assignment. Due by 5pm on Monday February 22.

Here are the two scripts I used in class on February 10 demonstrating numerical convergence for Forward Euler and Crank-Nicolson time-stepping: and test_heat_cn_dirichlet.m . They refer to the heat equation codes you can find here. If the Forward Euler script takes too long to run, comment out the one or two most highly resolved runs and comment out subsequent references to those solutions and errors in the script..

Here are the two scripts I used in class on February 22 demonstrating four schemes for the advection equation: class_Feb_22.m and class_Feb_22a.m. They require the scripts f.m, explicit_upwind.m, lax_friedrichs.m, lax_wendroff.m, beam_warming.m, g.m, explicit_upwind_periodic.m, lax_friedrichs_periodic.m, lax_wendroff_periodic.m, and beam_warming_periodic.m.

Here are the three scripts I used in class on March 23 demonstrating aliasing error, power spectra, and spectral differentiation class_Mar23_fft.m, class_Mar23_decay.m, and class_Mar23_diff.m. They require the scripts find_spec.m, f.m, d_mid.m, and fdiff.m.

Here is your final homework assignment. Due by 5pm on Friday April 15.