Documentation Center

  • Trial Software
  • Product Updates


Class: categorical

Convert categorical array to double array

The nominal and ordinal array data types might be removed in a future release. To represent ordered and unordered discrete, nonnumeric data, use the MATLAB® categorical data type instead.


B = double(A)


B = double(A) converts the categorical array A to a double array. Each element of B contains the internal categorical level code for the corresponding element of A.

See Also

Was this topic helpful?