Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion GLMdenoisedata.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
% vector of elements that are each X x Y x Z x time. XYZ can be collapsed.
% The dimensions of <data> should mirror that of <design>. (For example,
% <design> and <data> should have the same number of runs, the same number
% of time points, etc.) <data> should not contain any NaNs.
% of time points, etc.) <data> should not contain any NaNs.
% <stimdur> is the duration of a trial in seconds
% <tr> is the sampling rate in seconds
% <hrfmodel> (optional) indicates the type of model to use for the HRF:
Expand Down Expand Up @@ -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});
Expand Down