The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Binary files format
Replies: 2   Last Post: Oct 16, 1996 12:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2
Registered: 12/11/04
Binary files format
Posted: Oct 10, 1996 11:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 (e-mail:
University of Valencia

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.