diff --git a/GLMdenoisedata.m b/GLMdenoisedata.m index a05a919..3857c16 100644 --- a/GLMdenoisedata.m +++ b/GLMdenoisedata.m @@ -12,7 +12,7 @@ % vector of elements that are each X x Y x Z x time. XYZ can be collapsed. % The dimensions of should mirror that of . (For example, % and should have the same number of runs, the same number -% of time points, etc.) should not contain any NaNs. +% of time points, etc.) should not contain any NaNs. % is the duration of a trial in seconds % is the sampling rate in seconds % (optional) indicates the type of model to use for the HRF: @@ -212,6 +212,11 @@ data = {data}; end +% Cast to single: +for i=1:numel(data) + data{i} = single(data{i}); +end + % calc numruns = length(design); dataclass = class(data{1});