Hi

I am not sure that here is the right place to report but I found a bug in
octave/3.0.1/m/statistics/base/range.m

range(X,DIM) does not work properly.

In the original script:

function y = range (x, varargin)
  if (nargin != 1 && nargin != 2)
    print_usage ();
  endif
  y = max (x, varargin{:}) - min (x, varargin{:});
endfunction

the 5th line should be replaced with

  y = max (x, [], varargin{:}) - min (x, [], varargin{:});

Or the usage should be changed.

Thanks,
Dongik
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to