Math 293 - Matlab
 
Syllabus | Course Information | Lecturers/TAs | Office Hours | Homework Solutions | Prelims | Matlab
 

The program dfield is available here

Or you can use the matlab files. Computers with Matlab are available in the Engineering Library (Carpenter Hall).

Here are the commands used in Friday class. They will help get you started with dsolve. Remember that Dy is equivalent to dy/dt unless you change the independent variable.

Euler Method Programs from Monday class. Please store all of these files in the same directory and make sure Matlab is accessing that directory. See page 121 for sample code

  • Euler_1
  • Euler_2
  • Euler_3
  • fun (This file is needed for Euler_1 and Euler_2)
  • fun_3 (This file is needed for Euler_3)

    Euler Method program from Wednesday class.

  • Simple Euler Program

    Sample ODE45 code from problem 2.4-A2 (You may just modify this code for your homework)

  • ode45 code

    The follow code may be useful for problem 3.1.3 (You may modify this code for your homework)

  • dydx2.m - Sample ODE45 code from problem 3.1.6.
  • plot293a.m - Sample plotting routine for problem 3.1.6.
  • plot293b.m - Sample plotting code. This code compares the solution with the ODE45 output.