K = STRFIND(STRS,STR) looks through the rows of the cell array of strings STRS to find strings that contain the string STR, returning the matching row indices.
Functions very much like STRMATCH with a cell array input, except STRMATCH is limited to whenever the cell array string begins with STR.
Unlike STRMATCH, it does not work with a char array input. I think this is a limitation of the Matlab function STRFIND.
Tom Coulter (2021). strfind.m (https://www.mathworks.com/matlabcentral/fileexchange/9008-strfind-m), MATLAB Central File Exchange. Retrieved .
Let's not write off all those who cannot afford to upgrade!
This is a builtin function in MATLAB 7.1 (R14sp3)
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!