diff scripts/set/unique.m @ 5737:c70bfdf5b2c5

[project @ 2006-04-04 20:19:57 by jwe]
author jwe
date Tue, 04 Apr 2006 20:19:57 +0000
parents 2618a0750ae6
children 34f96dd5441b
line wrap: on
line diff
--- a/scripts/set/unique.m
+++ b/scripts/set/unique.m
@@ -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);