Home > freetb4matlab > set > intersect.m

intersect

PURPOSE ^

%

SYNOPSIS ^

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

DESCRIPTION ^

% -*- 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}

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003