FUNCTION REFERENCE

rmmissing

Remove missing entries.

Remove missing entries.

Syntax

[R, TF] = rmmissing(A)

Syntax

R = rmmissing(A, dim, 'MinNumMissing', n)

Syntax

R = rmmissing(T, 'DataVariables', vars)

A vector loses its missing elements; a matrix or table loses rows (dim 2: columns) holding at least n missing values (default 1). TF marks the removed rows or columns. Missing: NaN, NaT, <missing>, '' in a cellstr.

Example

rmmissing([1 NaN 3])   % [1 3]

Differences from MATLAB: 2-D arrays only.

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