FUNCTION REFERENCE

strmatch

Find rows beginning with a prefix, optionally requiring an exact match.

Find rows beginning with a prefix, optionally requiring an exact match.

Syntax

indices = strmatch(prefix, charMatrixOrCells [, 'exact'])

Example

strmatch('ab',{'abc','xab','ab'})'   % [1 3]

Differences from MATLAB: none known for these forms.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.