Matlab fseek bug with uint64 offset
Note: This problem was fixed in Matlab ≥ R2015a.
Matlab R2013 cannot handle uint64 seek offsets.
Octave ≥ 3.6 works with uint64 offsets.
offs = uint64(0); %or any number
fid = fopen(tempname);
fser = fseek(fid,offs,'bof');- fser == -1for Matlab R2013a/R2013b (error)
- fser == 0for Octave (correct)