# HG changeset patch # User David Bateman # Date 1217348507 -7200 # Node ID 80e3fe8938f2e9d0d26ba4e1c10cc2cc3f492cea # Parent 139f47cf17ab8a9bcb67f5e5d88fda0520cbaf67 Trivial doc fix diff -r 139f47cf17ab -r 80e3fe8938f2 scripts/general/trapz.m --- a/scripts/general/trapz.m Thu Jun 05 21:58:14 2008 +0200 +++ b/scripts/general/trapz.m Tue Jul 29 18:21:47 2008 +0200 @@ -73,7 +73,7 @@ else dim = floor (dim); if (dim < 1 || dim > nd) - error ("cumtrapz: invalid dimension along which to sort"); + error ("trapz: invalid dimension along which to sort"); endif endif @@ -90,7 +90,7 @@ z = 0.5 * sum (x(idx1{:}) + x(idx2{:}), dim); else if (! size_equal (x, y)) - error ("cumtrapz: x and y must have same shape"); + error ("trapz: x and y must have same shape"); endif z = 0.5 * sum ((x(idx1{:}) - x(idx2{:})) .* (y(idx1{:}) + y(idx2{:})), dim);