Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Code Matlab => Scilab > Equivalences Matlab -> Scilab > I > ismember (Matlab function)

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 isnan (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:
Tue Feb 25 08:50:45 CET 2020