mustBeNonmissing
Syntax
Description
mustBeNonmissing(
throws an error if value
)value
contains missing values. This function does not return a value.
mustBeNonmissing
calls the anymissing
function to determine if the input contains missing values.
Class support: single
, double
,
string
, cell of character vectors, categorical
,
datetime
, duration
,
calendarDuration
, table
,
timetable
, and MATLAB® classes that overload anymissing
or
ismissing
.
Examples
Input Arguments
Tips
mustBeNonmissing
is designed to be used for property and function argument validation.For information on what constitutes a missing value for different types of values, see the
anymissing
function.