[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
|
| http://www.mathworks.com/access/helpdesk/help/techdoc/ref/zeros.html
|
| 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.
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
-------------------------------------------------------------
- Re: Create a logical array of 0, (continued)
RE: Create a logical array of 0, Randy Gober, 2004/09/03
Re: Create a logical array of 0, David Bateman, 2004/09/03
Re: Create a logical array of 0, Josep Monés i Teixidor, 2004/09/03
Re: Create a logical array of 0,
John W. Eaton <=
- Re: Create a logical array of 0, David Bateman, 2004/09/03
- Re: Create a logical array of 0, John W. Eaton, 2004/09/03
- Re: Create a logical array of 0, David Bateman, 2004/09/05
- Re: Create a logical array of 0, Josep Monés i Teixidor, 2004/09/05
- Re: Create a logical array of 0, David Bateman, 2004/09/05
- Re: Create a logical array of 0, John W. Eaton, 2004/09/05