You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: load_xdf.m
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -356,6 +356,7 @@
356
356
if temp(id).srate >0
357
357
temp(id).sampling_interval =1/temp(id).srate;
358
358
else
359
+
warning('Nominal sampling rate of stream %s is 0. Calculated effective sampling rate might not be meaningful, relying on this rate is not recommended.', header.info.name);
359
360
temp(id).sampling_interval =0;
360
361
end
361
362
% fread parsing format for data values
@@ -571,7 +572,14 @@
571
572
else
572
573
% calculate effective sampling rate
573
574
for k=1:length(temp)
574
-
temp(k).effective_srate = (length(temp(k).time_stamps) -1) / (temp(k).time_stamps(end) - temp(k).time_stamps(1)); end
0 commit comments