finding an exact word in a string using a variable

Hi I am trying to find a location of an exact word here....
str = 'I woke up to people talking loud outside so I decided to go talk to them and we all started talking loudly'
word = 'talk'
I tried to use strfind here but it also returns the location of talking...
location = strfind(str, word)

Réponses (0)

Cette question est clôturée.

Tags

Question posée :

le 5 Juil 2020

Clôturé :

le 5 Juil 2020

Community Treasure Hunt

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

Start Hunting!

Translated by