machinefmt — Order for reading or writing bytes or bits'n' (default)
| 'b' | 'l' | 's' | 'a' | ...
Order for reading or writing bytes or bits in the file, specified as one of the following strings.
|
|
Your system byte ordering (default) |
|
|
Big-endian ordering |
|
|
Little-endian ordering |
|
|
Big-endian ordering, 64-bit long data type |
|
|
Little-endian ordering, 64-bit long data type |
c++中对于int,和float的数据,可以用下列方法进行位置互换:
((unsigned int *)data)[i] = ntohl(((unsigned int *)data)[i]);
参考:
http://cn.mathworks.com/help/matlab/ref/fread.html#inputarg_machinefmt
321




被折叠的 条评论
为什么被折叠?



