Am Freitag, den 10.10.2008, 12:04 +0200 schrieb Søren Hauberg: > fre, 10 10 2008 kl. 12:02 +0200, skrev Thomas Weber: > > > 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. > > The current code just ignores the third input argument. Should it > generate an error? I don't really care if there's an error or not, but I > don't mind making the change, if you think that's better.
>From the documentation of in both brands, I actually thought it should throw an error. But Matlab seems to accept this as well, so I have no idea. http://www.mathworks.com/access/helpdesk/help/toolbox/stats/index.html?/access/helpdesk/help/toolbox/stats/mad.html 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? 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
