[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 diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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
+++ 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);