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 ExchangeCell 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