Page 1 of 1

VALUESET contains multiple NaN values.

Posted: Thu Jul 20, 2017 12:49 pm
by matlab1
VALUESET contains multiple NaN values.

Re: VALUESET contains multiple NaN values.

Posted: Mon Jan 11, 2021 3:10 am
by matlab1
Categorical Arrays

Arrays of qualitative data with values from a finite set of discrete, nonnumeric data

categorical is a data type to store data with values from a finite set of discrete categories. For example, the syntax C = categorical({'R','G','B','B','G','B'}) creates a categorical array with six elements that belong to the categories R, G, or B.

A categorical array provides efficient storage and convenient manipulation of nonnumeric data, while also maintaining meaningful names for the data values. The categories can have a natural order, but it is not required.

If your categorical array contains NaN values, you will see this error.

You can use isnan command to find them and change them to another value such as zero, etc.