From bug-request at octave dot org Tue Jan 11 15:04:12 2005 Subject: Re: iscell(c{:}) From: Quentin Spencer To: "John W. Eaton" CC: Teemu Ikonen , bug@octave.org Date: Tue, 11 Jan 2005 15:00:23 -0600 For what it's worth, MATLAB 7.01 returns the following when I run your example: >> c = {1,2}; >> iscell(c{:}) ??? Error using ==> iscell Too many input arguments. John W. Eaton wrote: >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 -------------------------------------------------------------