ismember
Array elements that are members of another array.
📝Syntax
T = ismember(A, B)
📥Input Arguments
Parameter Description
A a variable
B a variable
📤Output Arguments
Parameter Description
T result of ismember.
📄Description

T = ismember(A, B) returns an array of logical where the data in A is found in B.

💡Examples
A = [50 30 40 20];
B = [20 40 40 40 60 80];
T = ismember(A, B)

T = ismember(["a","b","f"], ["b", "f", "c"])
🔗See Also
sort
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub