Search substring in character array

How can I find of a substring is present in a character array? The position is´t really important.

답변 (1개)

Ameer Hamza
Ameer Hamza 2018년 5월 8일
편집: Ameer Hamza 2018년 5월 8일

0 개 추천

See strfind(). Or if position is not important then use contains().

댓글 수: 2

Erik Verdijk
Erik Verdijk 2018년 5월 8일
Undefined function 'contains' for input arguments of type 'char'. I get this error
Ameer Hamza
Ameer Hamza 2018년 5월 8일
편집: Ameer Hamza 2018년 5월 8일
contains() was introduced in R2016b. Which MATLAB version are you using?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

질문:

2018년 5월 8일

편집:

2018년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by