Skip to content

Commit f4b6915

Browse files
committed
Re-added effective_srate fix from 1.11 that was missing in 1.12
1 parent 55b4e77 commit f4b6915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Matlab/xdf/load_xdf.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503
segments(r).t_begin = temp(k).time_stamps(range(1));
504504
segments(r).t_end = temp(k).time_stamps(range(2));
505505
segments(r).duration = segments(r).t_end - segments(r).t_begin;
506-
segments(r).effective_srate = segments(r).num_samples / segments(r).duration;
506+
segments(r).effective_srate = (segments(r).num_samples-1)/ segments(r).duration;
507507
end
508508

509509
% calculate the weighted mean sampling rate over all segments

0 commit comments

Comments
 (0)