changeset 5737:c70bfdf5b2c5

[project @ 2006-04-04 20:19:57 by jwe]
author jwe
date Tue, 04 Apr 2006 20:19:57 +0000
parents e07baa8b93b9
children 126d7f1945ee
files scripts/ChangeLog scripts/set/unique.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Apr 04 19:41:45 2006 +0000
+++ b/scripts/ChangeLog	Tue Apr 04 20:19:57 2006 +0000
@@ -1,3 +1,8 @@
+2006-04-04  Bob Weigel  <rweigel@gmu.edu>
+
+        * scripts/set/unique.m: Properly handle single column input when
+	"rows" is specified.
+
 2006-04-04  John W. Eaton  <jwe@octave.org>
 
 	* path/setpath.m: New file.
--- a/scripts/set/unique.m	Tue Apr 04 19:41:45 2006 +0000
+++ b/scripts/set/unique.m	Tue Apr 04 20:19:57 2006 +0000
@@ -58,7 +58,7 @@
     y = toascii (y);
   endif
 
-  if (nargin == 2)
+  if (nargin == 2 && size (y, 2) > 1)
     [y, i] = sortrows (y);
     if (iscell (y))
       match = cellfun ("size", y(1:n-1,:), 1) == cellfun ("size", y(2:n,:), 1);