FUNCTION REFERENCE

uint64

Convert to unsigned 64-bit integers.

Convert to unsigned 64-bit integers.

Syntax

uint64(X)

Rounds half away from zero and saturates at intmin('uint64')..intmax('uint64'); NaN becomes 0. Each element takes 8 bytes.

Arithmetic with the same class or a scalar double stays uint64; other mixes are errors.

Example

x = uint64([2.5 -3.5 1000])

uint64 values stay exact 64-bit integers.

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.