Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to search on cell string into other cell string

1 Ansicht (letzte 30 Tage)
Aravin
Aravin am 21 Aug. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
strfind can find one pattern in string cell array. How can I find one small cell array in to bigger cell array.
for example
Students = {'Mr. A', 'Mr. B', 'Mr. C', 'Mr. D'};
to_find = {'Mr. C', 'Mr. A'};
Now I want to find to_find into Students without loops.
  1 Kommentar
per isakson
per isakson am 21 Aug. 2016
Is this what you are looking for
>> ismember( to_find, Students )
ans =
1 1
both are in the list of students.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by