Am Freitag, den 10.10.2008, 11:40 +0200 schrieb Søren Hauberg:
> fre, 10 10 2008 kl. 11:19 +0200, skrev Paul Hussein:
> > OK,
> > 
> > thanks for the reply. Maybe I am interpreting octave's output incorrectly.
> > 
> > when I call mad i get :
> > 
> > octave:1> mad([1234])
> > usage: a = mad (X,dim)
> > error: evaluating if command near line 23, column 3
> > error: called from `mad' in file 
> > `/home/matlab/octave/statistics-1.0.7/mad.m'
> > octave:1>
> 
> Hmm, looking at the source code, this is a bug in 'mad'. You can fix
> this manually, by changing the line 
> 
>   if (nargin != 1 || nargin != 2)
> 
> to
> 
>   if (nargin != 1 && nargin != 2)
> 
> I've fixed this in SVN, so you can also get an updated version from
> http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/statistics/inst/mad.m?revision=5348

Now
        mad(1,2,3)
doesn't generate an error anymore.

I'm not sure this is correct, also the other brand seems to accept this, too.

        Thomas



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to