| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
Convert categorical array to unsigned 8-bit integers
B = uint8(A)
B = uint8(A) converts the categorical array A to unsigned 8-bit integers. 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('uint8') levels, the internal codes will saturate to intmax('uint8')when cast to int8.
![]() | Type property (qrandset) | uint16 (categorical) | ![]() |

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 |