Mercurial > octave-nkf
comparison scripts/set/ismember.m @ 5435:66ad03c58880
[project @ 2005-08-31 20:41:47 by jwe]
author | jwe |
---|---|
date | Wed, 31 Aug 2005 20:41:48 +0000 |
parents | 4c8a2e4e0717 |
children | 2618a0750ae6 |
comparison
equal
deleted
inserted
replaced
5434:c2428a4b7d56 | 5435:66ad03c58880 |
---|---|
20 ## -*- texinfo -*- | 20 ## -*- texinfo -*- |
21 ## @deftypefn {Function File} {} ismember (@var{A}, @var{S}) | 21 ## @deftypefn {Function File} {} ismember (@var{A}, @var{S}) |
22 ## Return a matrix the same shape as @var{A} which has 1 if | 22 ## Return a matrix the same shape as @var{A} which has 1 if |
23 ## @code{A(i,j)} is in @var{S} or 0 if it isn't. | 23 ## @code{A(i,j)} is in @var{S} or 0 if it isn't. |
24 ## @end deftypefn | 24 ## @end deftypefn |
25 ## @seealso{unique, union, intersect, setxor, setdiff} | 25 ## @seealso{unique, union, intersection, setxor, setdiff} |
26 | 26 |
27 ## Author: Paul Kienzle | 27 ## Author: Paul Kienzle |
28 ## Adapted-by: jwe | 28 ## Adapted-by: jwe |
29 | 29 |
30 function c = ismember (a, S) | 30 function c = ismember (a, S) |