Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - English


ismember (Matlab function)

Data sets membership comparison

Matlab/Scilab equivalent

Matlab Scilab
// a)
AinB = ismember(A, B)

// b)
[AinB, loc] = ismember(A, B)
// c)
[rAinB, loc] = ismember(A, B, 'rows')
// a)
mA = members(A, B);
AinB = bool2s(mA~=0)
// b)
[mA, loc] = members(A, B)
// c)
[rmA, loc] = members(A, B, "rows");
rAinB = bool2s(rmA~=0)

Description

In addition, Scilab provides the number of occurrences, can provide the locations of last occurrences instead of the first ones, can process A and B column-wise, and can ignore the order of elements in each row/column to be detected (detection of permutations).

Report an issue
<< islogical (Matlab function) I isnumeric (Matlab function) >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:49:22 CEST 2024