find a word in sentence by "strfind"
Mostra commenti meno recenti
i want to search in a cell by a word using "strfind" and if it exist return 1 if not return 0
this is the rows i search in:

i am using now "strcmpi" as: % it returns 1 or 0 but it search only for the same word % strfind: search for any word containing this letters%
if strcmpi(alldata{i,6},'battery') % search for word "battery" in 6th column
how i can do it by "strfind" ?
note : i split the sentence into words for easy search so i want by the end to sum the whole row if the sum =< 1 means that this row has the word i search for
1 Commento
Stephen23
il 18 Mag 2015
This question is a continuation of this one:
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!