% sol1.m % Solves the first order differential equation x'=f(t,x) where the % function f(t,x) is as defined by the expression in the string variable % ftx. Initial conditions are obtained by clicking the mouse on the % desired point inside the graphics window. If the mouse is clicked on a % point outside the window then the user is prompted for the initial % values directly. global fstring fstring=ftx; disp(' ') answer=input('Do you wish to draw a new slope field? (y/n) ','s') if answer=='y' slopef(ftx,N) end hold on disp('Click on initial point; outside the graphics frame for manual entry.') [t0,x0]=ginput(1); if (t0