From bug-request at octave dot org Tue Apr 11 13:09:35 2006 Subject: Re: unexpected help From: Bill Denney To: tomh at kurage dot nimh dot nih dot gov cc: bug at octave dot org Date: Tue, 11 Apr 2006 14:08:34 -0400 (EDT) This bug is more of a bug with types. I think that what you're looking at is similar to another problem that I noticed recently (but I forgot to ask about/report here): octave:1> a = {1 2}; octave:2> class(a) ans = cell octave:3> class(a{:}) the second gives the help for class. In reality, both my and your errors should give an error that the function is given too many input arguements. Bill On Tue, 11 Apr 2006, Tom Holroyd (NIH/NIMH) [E] wrote: > ... reading in a large dataset ... with 2.9.5+ dated april 2 ... > > octave:19> length(data.trial) > ans = 478 > octave:20> length(data.trial)/2 > ans = 239 > octave:21> data.trial = data.trial{1:length(data.trial)/2}; > octave:22> length(data.trial) > > *** length: > > -- Built-in Function: length (A) > Return the `length' of the object A. For matrix objects, the > length is the number of rows or columns, whichever is greater (this > odd definition is used for compatibility with Matlab). > > > Additional help for built-in functions, operators, and variables > is available in the on-line version of the manual. Use the command > `doc ' to search the manual index. > > Help and information about Octave is also available on the WWW > at http://www.octave.org and via the help at octave dot org > mailing list. > > octave:22> > Zoiks! It gave me the help for length! > > -- > Tom Holroyd, Ph.D. > I would dance and be merry, > Life would be a ding-a-derry, > If I only had a brain. > -- The Scarecrow > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- > -- "What's blue and square? An orange in disguise." -- unknown ------------------------------------------------------------- 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 -------------------------------------------------------------