[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rearranging vectors/matrices
From: |
Ferdinand Schinagl |
Subject: |
rearranging vectors/matrices |
Date: |
Wed, 21 Oct 1998 09:43:11 +0100 |
Hi there,
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?
Sorry, don't know wether I'm still on the
list, so please also mail me directly - thanks!
Best regards,
Ferdinand
- rearranging vectors/matrices,
Ferdinand Schinagl <=