another indexing bug ?

Kai Habel kai.habel at gmx.de
Thu Feb 19 12:10:28 CST 2009


Hello,

with
changeset:   8800:f16aafdd99ca
tag:         tip
user:        John W. Eaton <jwe at octave.org>
date:        Wed Feb 18 01:10:43 2009 -0500
summary:     __gnuplot_version__.m: don't use regexp to extract version
number

I see the following behavior:

octave:1> X=zeros(2,3,4)
octave:2> X(1,1,1)=1
X =

ans(:,:,1) =

   0   0   0
   0   0   0

ans(:,:,2) =

   0   0   0
   0   0   0

ans(:,:,3) =

   0   1   0
   0   0   0

ans(:,:,4) =

   0   0   0
   0   0   0

As you can see X(1,2,3) is set to 1.

Kai




More information about the Bug-octave mailing list