This preview shows page 1. Sign up to view the full content.
Unformatted text preview: , 2 ) 1 ( , ) ( 2 = + = y x y y x y can be solved on the interval [1, 3] by entering [x, y] = ode45(' f ', [1 3], -2 ) The results will be stored in the (column) vectors x and y (and will be output to the screen, if you don't put a ; at the end of this statement). In this form, ode45 automatically selects the initial step size and all subsequent step sizes, and attempts to compute the solution so that the global truncation error has a relative error less than 10 3 . For the above initial-value problem, if one enters ode45( ' f ', [1, 3], -2) without any output parameters on the left hand side of the = , then MATLAB produces a graph of the computed solution....
View Full Document
This note was uploaded on 12/10/2011 for the course CSC 349 taught by Professor Oadje during the Spring '11 term at University of Victoria.
- Spring '11
- Computer Science