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: fread( 'int32' ) MAC vs. PC problem
Replies: 1   Last Post: Oct 15, 1996 11:33 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Xenophon F. Costeas

Posts: 11
Registered: 12/7/04
fread( 'int32' ) MAC vs. PC problem
Posted: Oct 15, 1996 6:17 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

fread('int32') MAC vs. PC problem
Hi to all! I am really stuck with the following problem, and I could use
some help. I am trying to read a binary file, with all 32-bit (signed)
INTEGERS. On the Macintosh version of MATLAB 4.2c.1, this statement reads
1200 array elements:

[p, f_size] = fread( fid, 1200, 'int32')

The same statement on a friend's PC running Win95/MATLAB 4.2c.1 clips all
data points to about 2E7, "shaving off" all the values above that!

I have tried fopening with 'big-' and 'little-Endian' machine formats, but
to no avail...

Any ideas?

Thanks in advance...

Xen (Xenophon F. Costeas)

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.