: TF = ismissing (A)
: TF = ismissing (A, indicator)

Find missing data in a matrix or a string array.

Given an input vector, matrix or array of cell strings A, ismissing returns a logical vector or matrix TF with the same dimensions as A, where true values match missing values in the input data.

The optional input indicator is an array of values, which represent missing values in the input data. The values which represent missing data by default depend on the data type of A:

  • NaN: single, double.
  • ' ' (white space): char.
  • {''}: string cells.

See also: all, any, isempty, isnan, rmmissing.

Package: statistics