From 4a2133ba75aa3d75c911af7804b3791b8bf87eaf Mon Sep 17 00:00:00 2001 From: ehennestad Date: Thu, 31 Oct 2024 22:47:54 +0100 Subject: [PATCH] Update loadTimeSeriesData.m --- +util/loadTimeSeriesData.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+util/loadTimeSeriesData.m b/+util/loadTimeSeriesData.m index ffe43b76..4fc58d5b 100644 --- a/+util/loadTimeSeriesData.m +++ b/+util/loadTimeSeriesData.m @@ -27,9 +27,9 @@ if length(electrodes) > 1 fs = timeseries.starting_time_rate; - if isfinite(interval(2)): + if isfinite(interval(2)) data = NaN(ceil(diff(interval) * fs), length(electrodes)); - else: + else error('must specify time interval'); end for i = 1:length(electrodes)