From help-octave-request at bevo dot che dot wisc dot edu Thu Dec 14 03:17:39 2000 Subject: Question about size() and length() of lists (newbie question) From: Douglas Eck To: "help-octave at bevo dot che dot wisc dot edu" Date: Thu, 14 Dec 2000 10:17:36 +0100 I noticed that size() and length() treat lists differently. I can imagine that this is desired behavior but I thought I'd ask. Octave >> version ans = 2.1.31 Octave >> l=list('a','b','c') l = ( [1] = a [2] = b [3] = c ) Octave >> length(l) ans = 3 Octave >> size(l) ans = -1 -1 Regards, Doug ------------------------------------------------------------- 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 -------------------------------------------------------------