FUNCTION REFERENCE

contains

Test for text within each string, or for points inside an imref2d.

Test for text within each string, or for points inside an imref2d.

Syntax

tf = contains(s,pattern,'IgnoreCase',flag)

Syntax

tf = contains(R, xWorld, yWorld)

Each subject matches if any pattern matches; the result has the subject's shape. With an imref2d R, tf is a logical array of the size of xWorld that is true where the point lies inside or on the border of R.XWorldLimits by R.YWorldLimits.

Example

contains(["ABC" "def"],"b",'IgnoreCase',true)

Example

contains(imref2d([2 3]), [1 3.5 4], [1 2.5 1])   % [1 1 0]

Differences from MATLAB: bounded 2-D string storage (65536 elements, 2 MiB text); MAT persistence and N-D strings are not implemented.

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