# HG changeset patch # User Jaroslav Hajek # Date 1241885045 -7200 # Node ID 5fb7e17281e8a6470145818b0903659fffc2dcf4 # Parent 8648058968763a0442ff7bbf4f77838c73a13977 really fix the bug in range diff --git a/scripts/statistics/base/range.m b/scripts/statistics/base/range.m --- a/scripts/statistics/base/range.m +++ b/scripts/statistics/base/range.m @@ -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