We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed6298 commit d78487bCopy full SHA for d78487b
load_xdf.m
@@ -566,7 +566,12 @@
566
else
567
% calculate effective sampling rate
568
for k=1:length(temp)
569
- temp(k).effective_srate = (length(temp(k).time_stamps) - 1) / (temp(k).time_stamps(end) - temp(k).time_stamps(1)); end
+ if ~isempty(temp(k).time_stamps)
570
+ temp(k).effective_srate = (length(temp(k).time_stamps) - 1) / (temp(k).time_stamps(end) - temp(k).time_stamps(1));
571
+ else
572
+ temp(k).effective_srate = 0;
573
+ end
574
575
end
576
577
% copy the information into the output
0 commit comments