changeset 7992:80e3fe8938f2

Trivial doc fix
author David Bateman <dbateman@free.fr>
date Tue, 29 Jul 2008 18:21:47 +0200
parents 139f47cf17ab
children 80a715c4824d
files scripts/general/trapz.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);