problem in compare strings
Ältere Kommentare anzeigen
hi,
if I want compare two strings
ex.
str1='Animation|Children's|Comedy'
i want to check just the first word and whatever the others words
str1='Animation*' str2= 'Animation'
i.e can I compare strcmp(str1,str2)?
thanks
Akzeptierte Antwort
Weitere Antworten (1)
Jan
am 31 Jul. 2012
strncmp :
str1 = 'Animation*;
str2 = 'Animation';
strncmp(str1, str2, length(str2))
1 Kommentar
huda nawaf
am 31 Jul. 2012
Kategorien
Mehr zu String Parsing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!