[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rearranging vectors/matrices
From: |
John W. Eaton |
Subject: |
rearranging vectors/matrices |
Date: |
Wed, 21 Oct 1998 09:46:21 -0500 (CDT) |
On 21-Oct-1998, Ferdinand Schinagl <address@hidden> wrote:
| the following concerns debian's most
| recent package of octave-2.0.13
| (debian release hamm-2r2):
|
| I can rearrange vectors by using e.g.:
| x(:)
| in matlab 5.2.x,
| however octave does not mimic this behaviour
| in all details. Though it's possible to do
|
| octave:1> x=[1,2,3]
| x =
|
| 1 2 3
|
| octave:2> a(:)=x
| a =
|
| 1
| 2
| 3
|
| it does not work for, regardless of what
| "prefer_column_vectors" is set to, doing:
|
| octave:3> x(:)=x
| x =
|
| 1 2 3
|
| octave:4> x(:)
| ans =
|
| 1 2 3
|
| However matlab(tm) yields:
|
| >> x
|
| x =
|
| 1 2 3
|
| >> x(:)
|
| ans =
|
| 1
| 2
| 3
|
| Is there a way to enable this feature?
| Are there any concerns?
Try using `do_fortran_indexing = 1'.
Sorry that that's not a very good name for the variable that controls
this feature...
jwe