I have the following code written in Matlab:
>>> fid = fopen('filename.bin', 'r', 'b')
>>> %separated r and b
>>> dim = fread(dim, 2, 'uint32');
if I use a "equivalent" code in Python
>>> fid = open('filename.bin', 'rb')
>>> dim = np.fromfile(fid, dtype=np.uint32)
I got a different value of dim when I use Python.
Someone knows how to open this file with permission like Matlab ('r' and 'b' separated) in Python?
Thanks in advance,
Rhenan