Navigation

Operators and Keywords

Function List:

C++ API

: swapbytes (x)

Swap the byte order on values, converting from little endian to big endian and vice versa.

For example:

swapbytes (uint16 (1:4))
⇒ [   256   512   768  1024]

See also: typecast, cast.

Package: octave