diff -r 942386d6d1a5 scripts/statistics/base/cut.m
--- a/scripts/statistics/base/cut.m	Fri Apr 02 15:15:41 2010 -0400
+++ b/scripts/statistics/base/cut.m	Mon Apr 05 12:43:23 2010 -0700
@@ -53,12 +53,12 @@
     error ("cut: BREAKS must be a scalar or vector");
   endif
 
-  group = NaN * ones (size (X));
+  group = NaN (size (X));
   m = length (BREAKS);
-  if any (k = find ((X >= min (BREAKS)) & (X <= max (BREAKS))))
+  if any (k = find ((X >= min (BREAKS)) & (X < max (BREAKS))))
     n = length (k);
     group(k) = sum ((ones (m, 1) * reshape (X(k), 1, n))
-                    > (reshape (BREAKS, m, 1) * ones (1, n)));
+                    >= (reshape (BREAKS, m, 1) * ones (1, n)));
   endif
 
 endfunction
