changeset 22445:cbac595d23ac

Fix %!demo blocks for ode23 and ode45 * ode23.m: Do not open a new figure in %!demo block. * ode45.m: Likewise. Fix syntax error.
author Mike Miller <mtmiller@octave.org>
date Wed, 07 Sep 2016 08:40:29 -0700
parents d77caa2d523d
children ec9dca76189c
files scripts/ode/ode23.m scripts/ode/ode45.m
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ode/ode23.m	Wed Sep 07 06:55:18 2016 -0700
+++ b/scripts/ode/ode23.m	Wed Sep 07 08:40:29 2016 -0700
@@ -419,7 +419,6 @@
 %! p = diff (log (err)) ./ diff (log (h))
 %!
 %! ## Estimate order visually
-%! figure ();
 %! loglog (h, tol, "-ob",
 %!         h, err, "-b",
 %!         h, (h/h(end)) .^ 2 .* tol(end), "k--",
--- a/scripts/ode/ode45.m	Wed Sep 07 06:55:18 2016 -0700
+++ b/scripts/ode/ode45.m	Wed Sep 07 08:40:29 2016 -0700
@@ -404,9 +404,8 @@
 %! p = diff (log (err)) ./ diff (log (h))
 %!
 %! ## Estimate order visually
-%! figure ();
 %! loglog (h, tol, "-ob",
-%!         h, err, "-b"
+%!         h, err, "-b",
 %!         h, (h/h(end)) .^ 4 .* tol(end), "k--",
 %!         h, (h/h(end)) .^ 5 .* tol(end), "k-")
 %! axis tight