octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Changeset]: Trivial doc fix


From: David Bateman
Subject: [Changeset]: Trivial doc fix
Date: Tue, 29 Jul 2008 18:22:29 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080725)

D.

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary

# HG changeset patch
# User David Bateman <address@hidden>
# Date 1217348507 -7200
# Node ID a0d15061f6a6f147933d03647365df23960e9b19
# Parent  5046e210440d2498297f1bd72e220c3267861e66
Trivial doc fix

diff --git a/scripts/general/trapz.m b/scripts/general/trapz.m
--- a/scripts/general/trapz.m
+++ b/scripts/general/trapz.m
@@ -73,7 +73,7 @@ function z = trapz (x, y, dim)
   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 @@ function z = trapz (x, y, dim)
     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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]