Commit 02c6def0 authored by Meryem Ayse Yucel's avatar Meryem Ayse Yucel
Browse files

Update hmrR_tCCA.m

Only AUX (no ss) option did not exist and code was breaking if ss_ch_on = 0 is chosen. Fixed the issue.
parent 52495071
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -175,10 +175,12 @@ if flagtCCA
            end
        end
        % AUX signals + add ss signal if it exists
        if ~isempty(d_short) & exist('AUX') & ss_ch_on == 1
            AUX = [AUX, d_short]; % this should be of the current run
        elseif ss_ch_on ~= 0
        if exist('AUX') & ss_ch_on == 1 & ~isempty(d_short)
            AUX = [AUX, d_short]; 
        elseif ~exist('AUX') & ss_ch_on == 1 & ~isempty(d_short)
            AUX = d_short;
        elseif exist('AUX') & ss_ch_on == 0 
            AUX = AUX;
        else
            msg = 'No auxiliary or short separation measurement to regress out.';
            error(msg)