help-octave
[Top][All Lists]
Advanced

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

Inconsistent behaviour of (:)


From: Thomas Weber
Subject: Inconsistent behaviour of (:)
Date: Tue, 22 Feb 2005 08:36:37 -0600
User-agent: Mutt/1.5.6+20040907i

Hello, 

I just noticed something which I am not sure about wether it's a bug or
not:

octave:1> e1 = [1,0]
e1 =

  1  0

octave:2> acos(e1)(:)
ans =

  0.00000  1.57080

octave:3> cos(e1)(:)
ans =

  0.54030
  1.00000

Why does the acos command return a row-vector? 
b = acos(e1);
b(:)
returns a column vector (as I expected).

Am I doing something wrong?

Regards 
Thomas



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