From bug-request at octave dot org Mon Jul 25 12:33:21 2005 Subject: sort( [] ) returns error From: "Hall, Benjamin" To: "'bug at octave dot org'" Date: Mon, 25 Jul 2005 12:07:34 -0500 I currently only have access to octave-2.1.64, but ran into the following unexpected behavior octave:2> a = sort( [] ) error: value on right hand side of assignment is undefined error: evaluating assignment expression near line 2, column 3 of course, the same for [a,b] = sort( [] ) I expected an empty matrices in return. (Matlab quietly returns empty matrices) I tried to poke through the sort.cc, but it was over my head. Thanks! ------------------------------------------------------------- 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 -------------------------------------------------------------