Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Binary files format
Posted:
Oct 10, 1996 11:18 AM


Hi matlab users,
I am working with matlab under a HP workstation, and with a PC too. This is my problem: With a C program under DOS I write a data file, de data are 16 bits integers. When I open this files with matlab for windows 'int16', the data are correct, but when I open the files with Matlab for HP workstation with the same format the data are wrong.
for instance
The first data I read in my PC is: 839 > 00000011 01000111 (binary) The first data I read in HP is : 18179 > 01000111 00000011 (binary)
The Hight and Low bytes are changed.
Is there any automatic way to solve this problem ?
Thanks in advance.
Marcelino Martinez Sober (email: marcelino.martinez@uv.es) University of Valencia SPAIN



