From bug-octave-request at bevo dot che dot wisc dot edu Sun Nov 28 07:50:38 1999 Subject: Re: not compatable with Matlab (matrix problem) From: Rafael Laboissiere To: Mirek Kwasniak Cc: Dirk Eddelbuettel , Shengchao Li , bug-octave@bevo.che.wisc.edu Date: Sun, 28 Nov 1999 14:50:27 +0100 On Sun, Nov 28, 1999 at 02:11:02PM +0100, Mirek Kwasniak wrote: > b=[ 1 > 2] > > is column vector and in octave works: > > [ a b ] > [ a b*(1+1) ] > [ a 1*b ] > > but not > > [a (1+1)*b] > > > Finally, and just to clarify, nobody ever claimed that Octave's goal was to > > be perfectly Matlab compatible. If you want Matlab, you know where to get > > it ... > > but this is a bug. I do not think so. The above expression groups syntactically like: [(a (1+1))*(b)] It is totally normal that it does not work. Braindead Matlab (v. 5.2) gives different results for the following expressions: [a(1+1) *b] [a (1+1)*b] which is an unacceptable situation, because the semantics of expressions should not depend on the place of white spaces. I vote for not changing the behavior of Octave. -- Rafael Laboissiere Institut de la Communication Parlee / INP Grenoble, France http://www.icp.inpg.fr/~rafael ----------------------------------------------------------------------- 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 -----------------------------------------------------------------------