Minor indexing incompatibility
John W. Eaton
jwe at bevo.che.wisc.edu
Sat May 3 21:52:11 CDT 2008
On 3-May-2008, Moritz Borgmann wrote:
| I've found the following minor indexing incompatibility:
|
| A = ones(2, 3, 4);
| B = A(1,:)
|
| gives
|
| ans =
|
| 1 1 1 1 1 1 1 1 1 1 1 1
|
| as expected in both Octave and Matlab. However,
|
| B = A(1,1:end)
|
| gives the same in Matlab, as expected, but
|
| ans =
|
| 1 1 1
|
| in Octave (current hg default branch).
I checked in the following change.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080503/787c1c04/attachment.ksh
More information about the Bug-octave
mailing list