How to find two continuous words appear in the sentence
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
sir, Input cell arry
A= {' book is good','camera is working good', 'the picture quality is good'}
Query B={'is good'}
how to find index of the query string is appeared in the sentence.
my output is = 1,3
thanks.
0 commentaires
Plus de réponses (1)
Azzi Abdelmalek
le 22 Déc 2014
idx=find(~cellfun(@isempty,regexp(A,'is good','match')))
0 commentaires
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!