FUNCTION REFERENCE

standardizeMissing

Replace indicator values with the standard missing value.

Replace indicator values with the standard missing value.

Syntax

B = standardizeMissing(A, indicator)

Syntax

B = standardizeMissing(T, indicator, 'DataVariables', vars)

Numeric indicators apply to numeric (and duration) data, text indicators to string arrays and cellstrs; matches become NaN, <missing> or ''.

Example

standardizeMissing([1 -99 3], -99)   % [1 NaN 3]

Differences from MATLAB: Integer arrays are left unchanged (they have no missing value).

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