Commit 596cd7a6 authored by mayucel's avatar mayucel
Browse files

Setting resting-case-Aaux to []

Fix is on Line 215, rest is format
parent df9d6e3c
Loading
Loading
Loading
Loading
+27 −27
Original line number Diff line number Diff line
@@ -486,7 +486,7 @@ for iBlk=1:length(data_y)
                    At = [A(:,:,conc) Aaux];
                elseif iscell(rcMap{iBlk}) % channel map: each single regressor corresponds to one channel (nCH groups)
                    lstML = lstMLtmp(find(mlAct(rcMap{iBlk}{conc,iSS})==1));
                    Atcca = Aaux(:,rcMap{conc,iSS});
                    Atcca = Aaux{iBlk}(:,rcMap{conc,iSS});
                    At = [A(:,:,conc) Atcca];
                end
            end
+7 −6
Original line number Diff line number Diff line
@@ -206,12 +206,13 @@ if flagtCCA
                        
                    end
                    % return the reduced number of available regressors
                    Aaux{iBlk} = REG(:,compindex);
                    Aaux = REG(:,compindex);
                    % return reduced mapping matrix Av, this is the tCCA filter
                    tCCAfilter = ADD_trn.Av(:,compindex);
                    % set channel-regressor map to empty (GLM will use all available regressors for all channels)
                    rcMap{iBlk} = 'all';
                end
                Aaux = []; % we do not want to use regressors for the resting run
                %% save tCCAfilter matrix that was learned from resting state data.
                fprintf('hmrR_tCCA: run idx = %d. Generated and Saved tCCAfilter\n', runIdx)
                save(filterFilename, '-ascii', 'tCCAfilter');