MATLAB: Ismember

ismember

hi everyone, i'm a new matlab user and i need toknow what does ismember do . can anyone help me please . thank you

Best Answer

I suggest you read
doc ismember
for the full documentation. A simple application is determining whether elements of one numeric vector are in another:
tf = ismember([1 2 4],[2 5])
would result in
tf = [0 1 0]
because 2 (from the first input) is the only element that appears in the second input.
Related Question