特定の文字列を含むセルのインデックスを見つけるにはどうしたらよいですか?
이전 댓글 표시
40,000x1のセル配列があり、各セルには文字列が含まれています。特定の文字列を含むセルのインデックスを見つけたいです。以下のように試しましたが:
Index = strfind(Mycellarray, 'Bla');
次のエラーが発生します:
Error using ==> cell.strfind at 35 If any of the input arguments are cell arrays, the first must be a cell array of strings and the second must be a character array.
何が間違っているのでしょうか?ヘルプファイルでは、strfindはセル配列とパターンを受け入れるとあります。
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 文字と文字列에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!