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 Fri 22-May-2009 15:13:00 by m2html © 2003