FUNCTION REFERENCE
uint8
Convert to unsigned 8-bit integers.
Convert to unsigned 8-bit integers.
Syntax
uint8(X)Rounds half away from zero and saturates at intmin('uint8')..intmax('uint8'); NaN becomes 0. Each element takes 1 byte.
Arithmetic with the same class or a scalar double stays uint8; other mixes are errors.
Example
x = uint8([2.5 -3.5 1000])Differences from MATLAB: complex input and the 'like' form are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.