Home > freetb4matlab > set > setxor.m

setxor

PURPOSE ^

%

SYNOPSIS ^

function [c, ia, ib] = setxor (a, b, varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} setxor (@var{a}, @var{b})
% @deftypefnx {Function File} {} setxor (@var{a}, @var{b}, 'rows')
%
% Return the elements exclusive to @var{a} or @var{b}, sorted in ascending
% order.  If @var{a} and @var{b} are both column vectors return a column
% vector, otherwise return a row vector.
%
% @deftypefnx {Function File} {[@var{c}, @var{ia}, @var{ib}] =} setxor (@var{a}, @var{b})
%
% Return index vectors @var{ia} and @var{ib} such that @code{a == c(ia)} and
% @code{b == c(ib)}.
% 
% @seealso{unique, union, intersect, setdiff, ismember}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003