help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new functionality with '[]'?


From: John W. Eaton
Subject: new functionality with '[]'?
Date: Wed, 21 Sep 2005 21:31:28 -0400

On 21-Sep-2005, Mike Miller wrote:

| GNU Octave, version 2.1.71 (i686-pc-cygwin).
| 
| It might have to do with do_fortran_indexing.

Or compatibility "bugs" that we tried to fix.

| This is from 2.1.71:
| 
| octave:1> X=rand(3)
| X =
| 
|    0.45610  0.32443  0.34168
|    0.51433  0.13733  0.84220
|    0.64126  0.85705  0.46983
| 
| octave:2> X(1,1)=[]
| X =
| 
|    0.45610  0.32443  0.34168
|    0.51433  0.13733  0.84220
|    0.64126  0.85705  0.46983

I think this is still not compatible behavior.

| octave:3> X(1)=[]
| X =
| 
|    0.51433  0.64126  0.32443  0.13733  0.85705  0.34168  0.84220  0.46983

But this is.  Kind of an odd "feature" if you ask me.

jwe



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]