Convert categorical array to signed 32-bit integer array
Syntax
B = int32(A)
Description
B = int32(A) converts the categorical array A to
a signed 32-bit integer array. Each element of B contains
the internal categorical level code for the corresponding element
of A.
Undefined elements of A are assigned the
value 0 in B.
See Also
For more information on signed integers, see Integers in the MATLAB documentation.
double, uint32
 | int16 (categorical) | | int64 (categorical) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit