[Eeglablist] Error in pop_runica (line 412)

Angelika Wolman rwolman at hotmail.de
Tue Dec 29 02:23:16 PST 2020


Hello all,


When I run this code below, I get two errors.

Code:
for i = 1:length(files)
filename = files(i).name;

EEG = pop_loadset( 'filename', filename, 'filepath', directory_name);
    EEG = eeg_checkset( EEG );

    EEG = pop_runica(EEG,'extended',1,'interupt','on','icatype','runica');
    EEG = eeg_checkset( EEG );

    [artcomps] = MARA(EEG);
    EEG  = pop_subcomp(EEG,artcomps,0);
    EEG  = eeg_checkset(EEG);
    EEG = pop_saveset(EEG, 'filename',[filename(1:end-4), '_ICA_MARA.set'],'filepath',[directory_name '/preproc']);
end


  1.  The first error is as follows:

Error in pop_runica (line 412)
            [EEG.icaweights,EEG.icasphere] = runica( tmpdata, 'lrate', 0.001,  g.options{:} );

I'm new to matlab and eeglab and I cannot imagine that I should change something in the runica command at all.



        2. The second indicates an error on the line I marked in red, again with pop_runica:

Error in Loop_preprocess (line 105)
    EEG = pop_runica(EEG,'extended',1,'interupt','on','icatype','runica');




When I use the GUI, it also shows me the pop_runica (line 412) error.

Can anyone tell me what I'm supposed to do with these errors?
I use matlab 2017b and eeglab2020.

Thank you for your ideas and suggestions 🙂

Best,
Angelika


More information about the eeglablist mailing list