Products & Services Industries Academia Support User Community Company

Learn more about Statistics Toolbox   

int8 - Class: categorical

Convert categorical array to signed 8-bit integer array

Syntax

B = int8(A)

Description

B = int8(A) converts the categorical array A to a signed 8-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. If A contains more than intmax('int8') levels, the internal codes will saturate to intmax('int8') when cast to int8.

See Also

For more information on signed integers, see Integers in the MATLAB documentation.

double, uint8

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS