next up previous contents
Next: hw3plot.m Up: Required Files and Descriptions Previous: slopef.m   Contents

sol1.m

This file is used to generate a numerical solution to an IVP using bdode45.m. Its MATLAB command is sol1. It uses data from init.m and also requires direct input from the user. It first asks if a slopefield is also desired. Then next asks for a necessary initial condition $(t_0, x_0)$. The initial condition can be chosen by clicking directly on the graphics window with the provided cross-hairs, or by clicking outside the graphics area then entering the desired values directly in the command window. sol1.m works reasonably well, however in some cases the numerical routine can bog down if there are troublesome regions for the ODE. If this takes too long for your tastes, CTRL-C will make MATLAB give up its current calculation and return to the command prompt.



Michael Renardy
2000-05-12