Array indexing issue is original matrix empty

John W. Eaton jwe at bevo.che.wisc.edu
Wed Mar 19 14:36:47 CDT 2008


On 19-Mar-2008, David Bateman wrote:

| John W. Eaton wrote:
| > On 19-Mar-2008, David Bateman wrote:
| > 
| > | If a doesn't exist then the assignment
| > | 
| > | a(1:10,1) = 1:10
| > | 
| > | should succeed and does in matlabR2007b. However this fails in Octave
| > | 3.0.x and 3.1.x.. I believe the attached patch addresses this.
| > 
| > I applied it.
| > 
| > Thanks,
| > 
| > jwe
| 
| I suppose we should have a test for this bug.. Micro patch attached

I applied it along with an assert to check that the values are
assigned as we expect.

Thanks,

jwe


More information about the Bug-octave mailing list