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)