Skip to content

Commit

Permalink
Re-added effective_srate fix from 1.11 that was missing in 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Mar 1, 2016
1 parent 55b4e77 commit f4b6915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Matlab/xdf/load_xdf.m
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
segments(r).t_begin = temp(k).time_stamps(range(1));
segments(r).t_end = temp(k).time_stamps(range(2));
segments(r).duration = segments(r).t_end - segments(r).t_begin;
segments(r).effective_srate = segments(r).num_samples / segments(r).duration;
segments(r).effective_srate = (segments(r).num_samples-1)/ segments(r).duration;
end

% calculate the weighted mean sampling rate over all segments
Expand Down

0 comments on commit f4b6915

Please sign in to comment.