can any one explain this to me

x = strmatch(u(i),l,'exact')

1 Comment

The documentation explains it better than I can: strmatch (link).

Sign in to comment.

 Accepted Answer

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

More Answers (0)

Categories

Tags

Asked:

on 24 Dec 2016

Answered:

on 25 Dec 2016

Community Treasure Hunt

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

Start Hunting!