Next: , Previous: , Up: string   [Contents]


8.2.57.20 string.strfind

Method: out = strfind (obj, pattern)
Method: out = strfind (…, varargin)

Find pattern in string.

Finds the locations where pattern occurs in the strings of obj.

TODO: It’s ambiguous whether a scalar this should result in a numeric out or a cell array out.

Returns either an index vector, or a cell array of index vectors.