Mercurial > hg > octave-nkf
diff scripts/general/trapz.m @ 7992:80e3fe8938f2
Trivial doc fix
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 29 Jul 2008 18:21:47 +0200 |
parents | a1dbe9d80eee |
children | b88596e8f341 |
line wrap: on
line diff
--- a/scripts/general/trapz.m +++ b/scripts/general/trapz.m @@ -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);