From bug-octave-request at bevo dot che dot wisc dot edu Thu Dec 11 22:48:12 2003 Subject: more indexing weirdness From: Paul Kienzle To: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 11 Dec 2003 23:48:03 -0500 octave-2.1.52, Debian linux. Shouldn't the following add 5? octave:24> x=eye(2); x([1,1,1,1,1])+=1 x = 2 0 0 1 octave:25> x=[1:4]; x([1,1,1,1,1])+=1 x = 2 2 3 4 Paul Kienzle pkienzle at users dot sf dot net ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------