next up previous contents
Next: Using with subplot Up: One Way to Plot Previous: One Way to Plot   Contents

plotsln.m - General Instructions

plotsln.m is designed to create a MATLAB plot of an explicit solution to an ODE. The plot is generated using information from init.m. (Actually plotsln.m is general enough to plot any function defined in terms of the independent variable $t$.)
  1. If at home, download plotsln.m from the MATLAB files directory via the web page containing the other M-files and save in the appropriate directory. If at the Emporium, plotsln.m is already installed.
  2. Start MATLAB. At home change to the appropriate directory. At the Emporium copy init.m to the Student's Folder.
  3. Change only the following variables in init.m
    initax= Enter endpoints that will give some appropriate figure window. You may have to experiment with this, but often the ODE and initial conditions will give you a good indication where to start.
    t0= This is the given initial $t$-value.
    x0= This is the given initial $x$-value.
    ftxsln= RHS of your solution equation $x \,=\, \phi(t)$.
  4. Save init.m then type init at the command prompt (or copy-and-paste).
  5. Type plotsln
  6. If the plot looks correct, print it.


next up previous contents
Next: Using with subplot Up: One Way to Plot Previous: One Way to Plot   Contents
Michael Renardy
2000-05-12