This preview shows page 1. Sign up to view the full content.
OPTI 280 Assignment 11
Spring 2010
This assignment is due in one week. Each assignment is worth 100 points, and assignments that are
handed in late will be penalized 15 points per week.
NOTE:
To receive full credit for any problem, you must hand in printouts of all programs you are
asked to write as well as printouts of all command window output and any plots that the programs
produce. All programs must conform to the programming rules handed out at the beginning of the
semester. Write the answers to the question(s) associated with each problem at the end of program for
that problem (on the same sheet, if possible).
Read sections 35 and 3740 in the MatLab Tutorial and section 8.5 of Herniter to get an overview of
the material covered in this assignment.
1. (a) Write a MatLab program that uses Euler’s method to solve the diﬀerential equation
dy
dt
= sin
t
with initial condition
y
(
t
= 0) = 0
from
t
= 0 to
t
= 4. Run the program using
N
= 10 steps and have the program plot the
numerical solution over
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 05/23/2010 for the course OPTI 280 taught by Professor Pau during the Spring '10 term at University of Arizona Tucson.
 Spring '10
 Pau

Click to edit the document details