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 Thanks for bringing this to attention, Søren > > > Why do I get 'error: evaluating if command near line 23, column 3' > > Thanks > > Paul. > > > > On Thu, Oct 9, 2008 at 4:51 PM, Thomas Weber > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Am Donnerstag, den 09.10.2008, 15:43 +0200 schrieb Paul Hussein: > >> I would like to ask why, when I use > >> > >> mad from statistics i get : > >> > >> octave:2> testi > > > > What's in testi.m? > > > >> usage: a = mad (X,dim) > > That's a sign that you didn't call mad() with the right number of > > arguments. > > > >> Am I doing something fundamentally wrong ? > > > > Apart from not giving enough information, no :) > > > > We cannot guess what's in your code. > > > > 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 ------------------------------------------------------------------------- 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
