fre, 10 10 2008 kl. 12:20 +0200, skrev Søren Hauberg:
> > Mhm, my not totally new version of Matlab doesn't match this
> > description. Can someone with a current version please check what 
> > 
> >     mad(1,2,3)
> > gives?
> 
> It gives 0. However, it seems matlab actually support three input
> arguments (from the matlab mad help text):
> 
> MAD(X,FLAG,DIM) takes the MAD along dimension DIM of X.
> 
> It doesn't say what FLAG does, so I'm not sure how to treat it. It's
> worth mentioning that
> 
>   mad (1, 2, 3, 4)
> 
> gives an error.

Okay, it seems I was just not reading careful enough. If FLAG is zero
the absolute mean deviation is computed, whereas the absolute median
deviation is computed if it is one. I think the uploaded version does
this, but I'd appreciate if anybody would test it.

Thanks,
Søren 
> 
> Søren
> 
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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