FUNCTION REFERENCE
int32
Convert to signed 32-bit integers.
Convert to signed 32-bit integers.
Syntax
int32(X)Rounds half away from zero and saturates at intmin('int32')..intmax('int32'); NaN becomes 0. Each element takes 4 bytes.
Arithmetic with the same class or a scalar double stays int32; other mixes are errors.
Example
x = int32([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.