


% -*- texinfo -*-
% @deftypefn {Function File} {} intersect (@var{a}, @var{b})
% @deftypefnx {Function File} {[@var{c}, @var{ia}, @var{ib}] =} intersect (@var{a}, @var{b})
%
% Return the elements in both @var{a} and @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.
%
% Return index vectors @var{ia} and @var{ib} such that @code{a(ia)==c} and
% @code{b(ib)==c}.
%
% @end deftypefn
% @seealso{unique, union, setxor, setdiff, ismember}