From bug-octave-request at bevo dot che dot wisc dot edu Mon Jan 26 23:04:44 2004 Subject: size() with two arguments fails for Nd arrays From: Quentin Spencer To: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 26 Jan 2004 23:02:49 -0600 The function size(A,N) should return the size of the Nth dimension. However, it returns an error for N>2, although it functions correctly for Nd arrays when only one argument is given. Example: octave:1> x=ones(2,3,4); octave:2> size(x) ans = 2 3 4 octave:3> size(x,2) ans = 3 octave:4> size(x,3) error: size: invalid second argument -- expecting 1 or 2 Also note that the help info for "size" is has not changed since Nd arrays were implemented and needs to be updated as well. ------------------------------------------------------------- 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 -------------------------------------------------------------