From 3a399629ee757af6fd59acd4dd1ad364613962de Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Fri, 15 Mar 2019 12:59:32 +0100 Subject: [PATCH] Bug fix in MATLAB tracking dump reader --- src/utils/matlab/libs/dll_pll_veml_read_tracking_dump.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/matlab/libs/dll_pll_veml_read_tracking_dump.m b/src/utils/matlab/libs/dll_pll_veml_read_tracking_dump.m index 698a1b5df..8f5ef94ce 100644 --- a/src/utils/matlab/libs/dll_pll_veml_read_tracking_dump.m +++ b/src/utils/matlab/libs/dll_pll_veml_read_tracking_dump.m @@ -88,7 +88,11 @@ else v7 = fread (f, count, 'float', skip_bytes_each_read - float_size_bytes); bytes_shift = bytes_shift + float_size_bytes; fseek(f,bytes_shift,'bof'); % move to next interleaved float - v8 = fread (f, count, 'long', skip_bytes_each_read - unsigned_long_int_size_bytes); + if unsigned_long_int_size_bytes==8 + v8 = fread (f, count, 'uint64', skip_bytes_each_read - unsigned_long_int_size_bytes); + else + v8 = fread (f, count, 'uint32', skip_bytes_each_read - unsigned_long_int_size_bytes); + end bytes_shift = bytes_shift + unsigned_long_int_size_bytes; fseek(f,bytes_shift,'bof'); % move to next float v9 = fread (f, count, 'float', skip_bytes_each_read - float_size_bytes);