sccn / ICLabel

Automatic EEG IC classification plugin for EEGLAB
https://iclabel.ucsd.edu/tutorial
53 stars 19 forks source link

Error in topoplotFast - Matrix dimensions must agree #7

Closed chrichat closed 4 years ago

chrichat commented 4 years ago

Dear Sir/MAdam

I am facing an error while using IClabel My code is straightforward

EEG=pop_biosig('edf.file'); EEG=pop_runica(EEG,'chanind',[1:22]); EEG=icalabel(EEG);

And i receive the following error (probably due to the fact that i do not do ICA in all of the channels?) :

Error using / Matrix dimensions must agree.

Error in topoplotFast (line 894) squeezefac = rmax/plotrad;

Error in ICL_feature_extractor (line 33) topoplotFast(EEG.icawinv(:, it), EEG.chanlocs(EEG.icachansind), ...

Error in iclabel (line 52) features = ICL_feature_extractor(EEG, flag_autocorr);

lucapton commented 4 years ago

I loaded the sample data that comes with eeglab and then ran the last two lines of code as you wrote them (correcting icalabel to iclabel) and was not able to replicate your error. I'm using MATLAB 2019a, a freshly installed copy of EEGLAB, and the most updated version of ICLabel. You could share your data with me or provide more information about what versions you're using or anything else you think might help. As it stands, I don't know what the problem is.

lucapton commented 4 years ago

Closing this as it's been months.