[Top][All Lists]

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

bug compatibility ;-)

From: John W. Eaton
Subject: bug compatibility ;-)
Date: Tue, 23 Mar 1999 01:12:11 -0600 (CST)

On 23-Mar-1999, Daniel Heiserer <address@hidden> wrote:

| Hi,
| I have a request for another bug compatibility of matlab. (if you want
| to see it like this)
| octave:1> a=rand(4)
| a =
|    9.0658e-05   9.8327e-01   7.0094e-01   2.4211e-01
|    6.4865e-01   7.2977e-01   3.5448e-01   6.4133e-01
|    4.1370e-01   5.2723e-01   4.1625e-01   7.1674e-01
|    7.9464e-01   9.0385e-02   3.8075e-01   4.3088e-01
| octave:2>
| octave:2> a(:)
| error: single index only valid for row or column vector
| error: evaluating index expression near line 2, column 1

In 2.0.11 and earlier versions, if you set do_fortran_indexing to 1,
you will get the behavior you want.

In 2.0.12 and later, a(:) will always stack the columns of a matrix
into a vector, so setting do_fortran_indexing to 1 for this feature
is no longer be necessary.

What version of Octave are you using?


reply via email to

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