Skip to content

Commit

Permalink
bug fixed for large arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaeifar committed Mar 21, 2024
1 parent 7a27ebc commit 6b93fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MATLAB/read_spinwalk.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
hdr_extra = fread(fileID, (hdr_size - 4*numel(dims))/8, 'double=>double');

% guess data type
datasize = filesize - hdr_size - 4;
datasize = filesize - double(hdr_size) - 4;
if datasize == prod(dims)
m_xyz = fread(fileID, prod(dims), 'uint8=>uint8');
elseif datasize == 4*prod(dims)
Expand Down

0 comments on commit 6b93fc7

Please sign in to comment.