changeset 9193:5fb7e17281e8

really fix the bug in range
author Jaroslav Hajek <highegg@gmail.com>
date Sat, 09 May 2009 18:04:05 +0200
parents 864805896876
children 41a0fc5c4600
files scripts/statistics/base/range.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/base/range.m	Sat May 09 18:00:36 2009 +0200
+++ b/scripts/statistics/base/range.m	Sat May 09 18:04:05 2009 +0200
@@ -38,7 +38,7 @@
   if (nargin == 1)
     y = max (x) - min (x);
   elseif (nargin == 2)
-    y = max (x, dim) - min (x, dim);
+    y = max (x, [], dim) - min (x, [], dim);
   else
     print_usage ();
   endif