swapbytes
Swap byte ordering.
📝Syntax
R = swapbytes(M)
📥Input Arguments
Parameter Description
M a variable: integer, single or double real full matrix.
📤Output Arguments
Parameter Description
R result of swapbytes: reversed byte order of M.
📄Description

swapbytes Swap byte ordering.

endian (little - big) converter

💡Examples
X = uint16([65535 128; 1 0])
Y = swapbytes(X)
🔗See Also
num2binbin2num
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub