VALUESET contains multiple NaN values.

Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

VALUESET contains multiple NaN values.

Post by matlab1 »

VALUESET contains multiple NaN values.
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: VALUESET contains multiple NaN values.

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests