next up previous contents
Next: sol1.m Up: Required Files and Descriptions Previous: init.m   Contents

slopef.m

This is a function file that plots the slopefield for the ODE entered as ftx in init.m. Its MATLAB command is slopef(ftx,N). It uses a N $\times$ N grid of small slope lines to outline solutions to the ODE $x' \,=\, f(t,x)$ from data in init.m. The slopefield is plotted within the $tx$-rectangle specified by initax. slopef(ftx,N) is also automatically called by sol1.m and hw3plot.m. Note that slopef.m automatically erases anything currently displayed in the active graphics window.



Michael Renardy
2000-05-12