Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Dicas de Conversão de Matlab para Scilab > Matlab-Scilab equivalents > 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:
Fri Apr 11 14:18:24 CEST 2014