Mercurial > hg > octave-lyh
diff scripts/set/setxor.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | e0a58c741996 |
line wrap: on
line diff
--- a/scripts/set/setxor.m +++ b/scripts/set/setxor.m @@ -31,7 +31,7 @@ ## Return index vectors @var{ia} and @var{ib} such that @code{a(ia)} and ## @code{b(ib)} are ## disjoint sets whose union is @var{c}. -## +## ## @seealso{unique, union, intersect, setdiff, ismember} ## @end deftypefn @@ -72,7 +72,7 @@ [c, i] = sort ([a(:); b(:)]); n = length (c); if (iscell (c)) - idx = find (strcmp (c(1:n-1), c(2:n))); + idx = find (strcmp (c(1:n-1), c(2:n))); else idx = find (c(1:n-1) == c(2:n)); endif