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 b442f8d commit 7568a4cCopy full SHA for 7568a4c
dependencies/xdfimport1.14/load_xdf.m
@@ -515,7 +515,12 @@
515
else
516
% calculate effective sampling rate
517
for k=1:length(temp)
518
- temp(k).effective_srate = length(temp(k).time_stamps) / (temp(k).time_stamps(end) - temp(k).time_stamps(1)); end
+ if ~isempty(temp(k).time_stamps)
519
+ temp(k).effective_srate = length(temp(k).time_stamps) / (temp(k).time_stamps(end) - temp(k).time_stamps(1));
520
+ else
521
+ temp(k).effective_srate = NaN;
522
+ end
523
524
end
525
526
% copy the information into the output
0 commit comments