help-octave
[Top][All Lists]
Advanced

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

empty ranges are matrices ?


From: John W. Eaton
Subject: empty ranges are matrices ?
Date: Tue, 29 Mar 2005 13:15:32 -0500

On 29-Mar-2005, Jean-Francois Cardoso <address@hidden> wrote:

| 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

Yes, the same as it is expected that a range with a single element is
converted to a scalar object.  Is this a problem?  How?

jwe



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