8.2.45 NaS

Function: out = NaS ()
Function: out = NaS (sz)

“Not-a-String". Creates missing-valued string arrays.

Returns a new string array of all missing values of the given size. If no input sz is given, the result is a scalar missing string.

NaS is the string equivalent of NaN or NaT. It represents a missing, invalid, or null value. NaS values never compare equal to any value, including other NaSs.

NaS is a convenience function which is strictly a wrapper around string.missing and returns the same results, but may be more convenient to type and/or more readable, especially in array expressions with several values.

See also: string.missing