How to search on cell string into other cell string
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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 件のコメント
per isakson
2016 年 8 月 21 日
Is this what you are looking for
>> ismember( to_find, Students )
ans =
1 1
both are in the list of students.
回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!