64-bit unsigned integer arrays
Variables in MATLAB® of data type (class) uint64
are stored as
8-byte (64-bit) unsigned integers. For example:
y = uint64(10);
whos y
Name Size Bytes Class Attributes y 1x1 8 uint64
For more information on integer types, see Integers.
Some array creation functions allow you to specify the data type. For instance,
zeros(100,'uint64')
creates a 100-by-100 matrix of zeros of type
uint64
.
If you have an array of a different type, such as double
or
single
, then you can convert that array to an array of type
uint64
by using the uint64
function.