Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to search on cell string into other cell string
조회 수: 1 (최근 30일)
이전 댓글 표시
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!