Home > freetb4matlab > set > setdiff.m

setdiff

PURPOSE ^

% Return the elements in @var{a} that are not in @var{b}, sorted in

SYNOPSIS ^

function [c, i] = setdiff (a, b, byrows_arg)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} setdiff (@var{a}, @var{b})
% @deftypefnx {Function File} {} setdiff (@var{a}, @var{b}, 'rows')
% @deftypefnx {Function File} {[@var{c}, @var{i}] =} setdiff (@var{a}, @var{b})
% Return the elements in @var{a} that are not in @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.
%
% Given the optional third argument @samp{'rows'}, return the rows in
% @var{a} that are not in @var{b}, sorted in ascending order by rows.
%
% If requested, return @var{i} such that @code{c = a(i)}.
% @seealso{unique, union, intersect, setxor, 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