Unverified Commit 6c68f5e1 authored by stephen scott tucker's avatar stephen scott tucker Committed by GitHub
Browse files

Convolution is truncated to tHRF (#85)

parent 2de25dcb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -641,7 +641,10 @@ for iBlk=1:length(data_y)
                        yavg(:,lstML,conc,iCond)=tbasis(:,:,conc)*tb(:,lstML,conc,iCond);
                    end
                    if idxBasis > 1
                        yavg = conv(yavg, avg_pulses{iCond});
                        for iML = transpose(lstML)
                            convolved = conv(yavg(:, iML, conc, iCond), avg_pulses{iCond});
                            yavg(:, iML, conc, iCond) = convolved(1:size(yavg, 1));  % Truncate convolution
                        end
                    end
                end