FUNCTION REFERENCE

ismembertol

Test membership within a scaled tolerance.

Test membership within a scaled tolerance.

Syntax

[tf, loc] = ismembertol(A, B[, tol][, 'ByRows', true][, 'DataScale', scale])

Returns a logical array and the first matching B index (zero for no match). Defaults are 1e-12 for double and 1e-6 when either input is single. Scaling uses both inputs, per column with ByRows. NaNs never match. OutputAllIndices returns all matching B indices in a cell array.

Example

[tf, loc] = ismembertol([2 7], [1 2 3]); loc   % [2 0]

Differences from MATLAB: N-D input is not supported.

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