From bug-request at octave dot org Tue Jan 11 14:50:12 2005 Subject: iscell(c{:}) From: "John W. Eaton" To: Teemu Ikonen Cc: bug at octave dot org Date: Tue, 11 Jan 2005 09:58:32 -0800 On 11-Jan-2005, Teemu Ikonen wrote: | Hi all, | | I noticed the following behaviour: | | > octave --no-init-file | GNU Octave, version 2.1.64 (i386-pc-linux-gnu). | [...] | | octave:1> c = {1,2}; | octave:2> iscell(c{:}) | | *** iscell: | | -- Built-in Function: iscell (X) | Return true if X is a cell array object. Otherwise, return false. | | | | Shouldn't iscell return 0 (or false) when given a cs-list? In your example, iscell(c{:}) is equivalent to iscell(1,2), and iscell is defined to work on a single argument. Should a usage error result in a return value of zero or an error? 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 -------------------------------------------------------------