Next: Using with subplot
Up: One Way to Plot
Previous: One Way to Plot
  Contents
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
.)
- 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.
- Start MATLAB. At home change to the appropriate directory.
At the Emporium copy init.m to the Student's Folder.
- 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
-value.
-
- x0= This is the given initial
-value.
-
- ftxsln= RHS of your solution equation
.
- Save init.m then type init at the command prompt (or
copy-and-paste).
- Type plotsln
- If the plot looks correct, print it.
Next: Using with subplot
Up: One Way to Plot
Previous: One Way to Plot
  Contents
Michael Renardy
2000-05-12