Skip to content

Commit

Permalink
Exotic bug occuring when only 2 sync-events in files
Browse files Browse the repository at this point in the history
Replaced length() with size() for robustness
  • Loading branch information
olafdimigen committed Mar 3, 2022
1 parent 2dbc622 commit 27c9746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synchronize.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@

%% update the sample index of events in the ET
% for existing ET events, search for closest timestamp in the new time
new_ix = zeros(length(ET.event),1);
new_ix = zeros(size(ET.event,1),1);
% for k = ix_startevent:ix_endevent
% new_ix(k) = searchclosest(ET.newtime,ET.event(k,1));
% end
Expand Down

0 comments on commit 27c9746

Please sign in to comment.