你好Hi
While reviewing the readUDIFMHM.m script, I noticed a bug in the section responsible for reading the BDS udifres residuals. Specifically, in the loop that loads the last 7 days of data:
for i=(len-6):len
pathname = [list_udif(len).folder '\'];
filename = list_udif(len).name;
fid = fopen(strcat(pathname, filename), 'rt');
[UDIF.B1I{i-(len-7)},~,~,~] = readBDSRes(fid, filename);
end
This code incorrectly uses list_udif(len) in every iteration, which results in the same file being read multiple times. To correctly read 7 different files, it should be updated to:
for i = (len-6):len
pathname = [list_udif(i).folder '\'];
filename = list_udif(i).name;
fid = fopen(strcat(pathname, filename), 'rt');
[UDIF.B1I{i-(len-7)},~,~,~] = readBDSRes(fid, filename);
end
This ensures that each iteration accesses a different day's file from list_udif, as intended.