MATLAB: Locate entire word in cell given a specific pattern

cellcell arraysMATLABstringstrings

I am trying to locate an entire word in a cell, given a specific pattern.
I am giving the following example:
stringList = {'cell', 'bell', 'charm', 'eva'}
index = find(strcmp(strList, 'ell'))
The words 'bell' and 'cell' must be located.

Best Answer

regexp(strjoin(stringList),'[ell]')