can any one explain this to me

1 Ansicht (letzte 30 Tage)
hiba rashed
hiba rashed am 24 Dez. 2016
Beantwortet: John BG am 25 Dez. 2016
x = strmatch(u(i),l,'exact')
  1 Kommentar
Star Strider
Star Strider am 24 Dez. 2016
The documentation explains it better than I can: strmatch (link).

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

John BG
John BG am 25 Dez. 2016
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

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by