MATLAB: How to save an array in matlab to binary format as big endian data

big endianbinaryendianfileformatMATLAB

Hi,
How can I save an array in matlab to binary format as big endian data?

Best Answer

See the fwrite function:
And pay attention to the machineformat argument. E.g.,
'b' or 'ieee-be' --> Big-endian ordering