From help-octave-request at bevo dot che dot wisc dot edu Sun Jun 18 20:16:36 2000 Subject: Re: Bug: Re: [a (b + c)] == [a b+c] ? From: Joao Cardoso To: bug-octave at bevo dot che dot wisc dot edu CC: help-octave at bevo dot che dot wisc dot edu Date: Mon, 19 Jun 2000 02:21:03 +0100 Paul Kienzle wrote: > > This is in the octave help files: > > If the value of `whitespace_in_literal_matrix' is `"traditional"', > Octave will convert spaces to a comma between identifiers and `('. > For example, given the matrix ... Thanks. I'm a bit lazy, so I always forgot the comma. And, being lazy, I haven't checked the docs. I knew of whitespace_in_literal_matrix, but tried setting it to '1' and '0'! Joao > > Paul Kienzle > pkienzle at kienzle dot powernet dot co dot uk > > From: Joao Cardoso > >I think that this is definitively a parser bug (probably difficult to > >correct) > >(it also occurs in 2.1.30): > > > > > >octave:1> T=(1:5)'; > > > >octave:2> [T T] > >ans = > > > > 1 1 > > 2 2 > > 3 3 > > 4 4 > > 5 5 > > > >octave:3> [T (T)] > >ans = > > > > 1 > > 2 > > 3 > > 4 > > 5 > > > >octave:4> [T (1+T)] > >error: invalid vector index = 6 > > > >octave:5> [T, (1+T)] > >ans = > > > > 1 2 > > 2 3 > > 3 4 > > 4 5 > > 5 6 ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------