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 Sat 16-May-2009 00:04:49 by m2html © 2003