Commit fa3f4844 authored by Meryem Ayse Yucel's avatar Meryem Ayse Yucel
Browse files

Update hmrG_SubjAvgStd.m

Added omitnan option to std for group avg so that if one or more of the subjects have no session avg, the group avg will provide the avg for the rest of the subjects.
parent a28b0479
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,6 +31,6 @@ for iBlk = 1:length(ySubjAvg{1})
    for iRun = 1:length(ySubjAvg)
        dts(:,:,iRun) = ySubjAvg{iRun}(iBlk).GetDataTimeSeries();
    end
    yAvgStdOut(iBlk).SetDataTimeSeries(std(dts,0,3));
    yAvgStdOut(iBlk).SetDataTimeSeries(std(dts,0,3,'omitnan'));
end