Next: , Previous: , Up: string   [Contents] 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.