From: John W. E. <jw...@be...> - 2003-01-11 20:35:39
|
On 11-Jan-2003, Peter Brinkmann <bri...@ma...> wrote: | Hi! | I just tried Octave 2.1.42 with octave-forge under Windows 2000, and I've | got a problem with the function inline.m from octave-forge. Here's | what happened: | | >> f=inline('x.*x','x') | parse error near line 32 of file /usr/share/octave/2.1.42/m/miscellaneous/inline.m | | >>> argstr = ["x,",sprintf ("P%i,",1:n)]; | ^ | error: `inline' undefined near line 1 column 3 | | I'm using the Octave binaries from Andy Adler's website. | Any help would be appreciated. This seems to work fine with my current sources and the current version of inline.m from the octave-forge CVS archive, at least when I start Octave without any arguments. But it looks like you might be using --traditional? Then it also fails for me. Ah, the bug is the difference in parsing spaces inside [ ]. One fix is: argstr = ["x,",(sprintf ("P%i,",1:n))]; Another is to remove the space between sprintf and ( in that statement. jwe |