[Top][All Lists]

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

Re: Create a logical array of 0

From: John W. Eaton
Subject: Re: Create a logical array of 0
Date: Fri, 3 Sep 2004 11:49:14 -0400

On  3-Sep-2004, David Bateman <address@hidden> wrote:

| Err, I just added code like zeros(m,n,"int8") about a week ago that got into
| 2.1.58, I didn't think about "logical". Reading the man-pages for zeros in
| matlab at
| The allowed types are
| 'double', 'single', 'int8', 'uint8', 'int16', 'uint16', 'int32', or 'uint32'.
| as 'single' precision is not in octave at the moment, and taking this as a
| reference zeros(m,n,classname) only works for the above classname minus
| 'single'.
| The only version of matlab (R12) I have access to doesn't allow this
| syntax, but instead treats the third argument as a numerical value and
| creates a three dimensional matrix.
| Given the above reference I don't beleieve Matlab itself can handle 
| zeros(m,n,'logical').

Even if Matlab cannot do it, I don't see why we should prohibit it.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]