fre, 10 10 2008 kl. 13:36 +0200, skrev Thomas Weber: > Am Freitag, den 10.10.2008, 12:31 +0200 schrieb Søren Hauberg: > > 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. > > I think that Matlab's implementation deviates from its documentation: > > flag = 0 => mean deviation > flag != 0 => median deviation > > Should we allow that, too?
Sure, why not? I guess a few people depend on this. I've made such a change. 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
