Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

swapbytes

Swap byte ordering.

Syntax

  • R = swapbytes(M)

Input argument

  • M - a variable: integer, single or double real full matrix.

Output argument

  • R - result of swapbytes: reversed byte order of M.

Description

swapbytes Swap byte ordering.

endian (little - big) converter

Example

X = uint16([65535 128; 1 0])
Y = swapbytes(X)

See also

num2bin, bin2num.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET