From bug-octave-request at bevo dot che dot wisc dot edu Sun Nov 28 07:11:53 1999 Subject: Re: not compatable with Matlab (matrix problem) From: Mirek Kwasniak To: Dirk Eddelbuettel Cc: Shengchao Li , bug-octave@bevo.che.wisc.edu Date: Sun, 28 Nov 1999 14:11:02 +0100 On Sat, Nov 27, 1999 at 10:51:34AM -0600, Dirk Eddelbuettel wrote: > > Shengchao> in matlab > Shengchao> a=[1 2 > Shengchao> 3 4]; > Shengchao> b=[1 > Shengchao> 2]; > Shengchao> c=[a (1+1)*b] > Shengchao> gives > Shengchao> c=[1 2 2 > Shengchao> 3 4 4] > Shengchao> but octave gives an error message. > > But b is a row vector. How can that work? Hi, 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. Mirek ----------------------------------------------------------------------- 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 -----------------------------------------------------------------------