changeset 22684:ce0f54b63923 stable

odeplot.m: Fix typo in documentation. * odeplot.m: 'end' -> 'done'.
author Rik <rik@octave.org>
date Thu, 27 Oct 2016 17:57:59 -0700
parents f88de8f27259
children b8c5280be6ad 9a0265ead11c
files scripts/ode/odeplot.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ode/odeplot.m	Sun Oct 23 23:16:02 2016 +0200
+++ b/scripts/ode/odeplot.m	Thu Oct 27 17:57:59 2016 -0700
@@ -66,7 +66,7 @@
 ## sets the x limits of the plot.  Subsequently, at each time step during the
 ## integration the ode solver calls @code{odeplot (@var{t}, @var{y}, [])}.
 ## At the end of the solution the ode solver calls
-## @code{odeplot ([], [], "end")} so that odeplot can perform any clean-up
+## @code{odeplot ([], [], "done")} so that odeplot can perform any clean-up
 ## actions required.
 ## @seealso{odeset, odeget, ode23, ode45}
 ## @end deftypefn
@@ -96,7 +96,7 @@
     ## t is either the time slot [tstart tstop] or [t0, t1, ..., tn]
     ## y is the initial value vector for the ode solution
     idx = 1;
-    told = t(1,1);
+    told = t(1);
     yold = y(:,1);
     figure ();
     hlines = plot (told, yold, "-", "marker", ".", "markersize", 9);