ismember

24 Ansichten (letzte 30 Tage)
ezzat elmo
ezzat elmo am 12 Mai 2012
Kommentiert: the cyclist am 4 Mai 2020
hi everyone, i'm a new matlab user and i need toknow what does ismember do . can anyone help me please . thank you
  1 Kommentar
Oleg Komarov
Oleg Komarov am 12 Mai 2012
Read the documentation: doc ismember.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

the cyclist
the cyclist am 12 Mai 2012
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.
  6 Kommentare
the cyclist
the cyclist am 4 Mai 2020
I knew he was going to say that.
the cyclist
the cyclist am 4 Mai 2020
Deborah, being less facetious now ...
As Rik suggested, there are several examples in the documentation for ismember. Do any of those help? If not, I would suggest opening a new question, provide some code that you are working on, and explain why you think ismember might help. You need to provide more detail, for us to be able to help you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by