Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
fread( 'int32' ) MAC vs. PC problem
Posted:
Oct 15, 1996 6:17 PM
|
|
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 frixos@ix.netcom.com (Xenophon F. Costeas)
|
|
|
|