can any one explain this to me

1 回表示 (過去 30 日間)
hiba rashed
hiba rashed 2016 年 12 月 24 日
回答済み: John BG 2016 年 12 月 25 日
x = strmatch(u(i),l,'exact')
  1 件のコメント
Star Strider
Star Strider 2016 年 12 月 24 日
The documentation explains it better than I can: strmatch (link).

サインインしてコメントする。

採用された回答

John BG
John BG 2016 年 12 月 25 日
the following examples may help
x = strmatch('max', char('max', 'minimax', 'maximum'))
returns
x = [1; 3] since rows 1 and 3 begin with 'max'. The statement
while
x = strmatch('max', char('max', 'minimax', 'maximum'),'exact')
returns
x = 1, since only row 1 matches 'max' exactly.
if you find these lines useful would you please mark my answer as Accepted Answer?
thanks in advance for time and attention
John BG

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by