Next: Using sol1.m Up: Using slopef.m Previous: Using slopef.m   Contents

Example

When you first copy init.m, it should be set to run this example.
Plot the slopefield for over the rectangle , . Investigate whether this rectangle gives a good overall picture of the ODE behavior. If not, plot over a better rectangle.
1. Change only the following in init.m
ftx = '2*t*x'; ('' indicates multiplication)
initax = [1,4,-2,0];
Save then type init in the command window to initialize the variables (or copy-and-paste in the Emporium).

2. Type slopef(ftx,N) to obtain

Since represents the slope, we should also consider when and . Suppose we try the symmetric rectangle , .
1. This time change only
initax = [-2,2,-2,2];
Save then type init in the command window (or copy-and-paste in the Emporium).
2. Type slopef(ftx,N) to obtain

Build your intuition: Does this picture match the general slope behavior indicated by ? Look at the following cases

Next: Using sol1.m Up: Using slopef.m Previous: Using slopef.m   Contents
Michael Renardy
2000-05-12