[Eeglablist] Rank before ICA

Eric HG erichg2013 at gmail.com
Tue Aug 24 04:21:27 PDT 2021


Dear Eeglablist,

I have had some troubles with the rank of the data after re-referencing to
average.

I have therefore used the following code before ICA:

rank_one = rank(EEG.data(:,:));
    EEG.nbchan = EEG.nbchan+1;
    EEG.data(EEG.nbchan,:,:) = zeros(1, EEG.pnts, EEG.trials);
    EEG.chanlocs(EEG.nbchan).labels = 'Ref';
    EEG = pop_reref(EEG, []);
    EEG = pop_select( EEG,'nochannel',{'Ref'});
    rank_two = rank(EEG.data(:,:));

Is this a feasible way to overcome this?

It gives good results with ICA decomposition.

Best regards,

Eric



More information about the eeglablist mailing list