From help-request at octave dot org Fri Sep 3 20:14:51 2004 Subject: Re: Create a logical array of 0 From: "John W. Eaton" To: David Bateman Cc: Josep =?iso-8859-1?Q?Mon=E9s?= i Teixidor , "Llista help a octave.org" Date: Fri, 3 Sep 2004 21:13:18 -0400 On 3-Sep-2004, David Bateman wrote: | Ok, I attach a patch that addresses the concatenation of boolean | scalars and matrices, and the indexing of booleans and integers. | The patch also addresses the issues with repmat... | | Log below showing that the patch works as expected... I applied your patch and some additional changes to allow things like x = false x(10) = false and x = false x(2:3) = false and x = false x(2:3,2:3) = logical (eye (2)) to work correctly (not converting the lhs to a double matrix). Thanks, 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 -------------------------------------------------------------