help-octave
[Top][All Lists]
Advanced

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

empty ranges are matrices ?


From: Jean-Francois Cardoso
Subject: empty ranges are matrices ?
Date: Tue, 29 Mar 2005 12:32:19 +0200


Is it expected behavior that empty ranges have type "matrix" and not
"range"?

octave> typeinfo(0:1)
ans = range
octave> typeinfo(1:0)
ans = matrix
octave> size(1:0)
ans =

  1  0

octave> version
ans = 2.1.67




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