8.2.24 isnanny

Function: out = isnanny (X)

Test if elements are NaN or NaN-like.

Tests if input elements are NaN, NaT, or otherwise NaN-like. This is true if isnan() or isnat() returns true, and is false for types that do not support isnan() or isnat().

This function only exists because:

  1. Matlab decided to call their NaN values for datetime “NaT” instead, and test for them with a different “isnat()” function, and
  2. isnan() errors out for some types that do not support isnan(), like cells.
  3. Octave does not define an ismissing function, but the Octave Forge statistics package does, and adding an ismissing function to Tablicious would conflict with that in hard-to-resolve ways.

isnanny() smooths over those differences so you can call it polymorphically on any input type. Hopefully.

Under normal operation, isnanny() should not throw an error for any type or value of input.

See also: ismissing, isnan, isnat, eqn, isequaln