You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[EEGLAB error in function MicroStats() at line 167:
Undefined function 'nanmean' for input arguments of type 'single'
Attach a link to Dropbox or Google Drive with screenshots and your data if possible.]
#### Steps to Reproduce
[Tools]
[Microstate analysis toolbox]
[Use labels obtained from>Backfitting prototypes to EEG>Ok]
#### Expected behavior:
[*To get the microstate statistics of duration, occurrence etc.*]
#### Actual behavior:
[*Error message pop-up*]
#### Versions
Yes I am having a similar issue but with running any EEGlab function that uses 'nanmean' instead of 'mean' with the argument 'omitnan'. I just updated my matlab to 2026a, and my EEGLab is the most recent version as well (2026.0.0). Any time I try to run my preprocessing function that calls to EEG lab I get the following error:
Activity
ericaflaten commentedon Jun 30, 2026
Yes I am having a similar issue but with running any EEGlab function that uses 'nanmean' instead of 'mean' with the argument 'omitnan'. I just updated my matlab to 2026a, and my EEGLab is the most recent version as well (2026.0.0). Any time I try to run my preprocessing function that calls to EEG lab I get the following error:
Unrecognized function or variable 'nanmean'.
Error in eega_tRejCorrCh (line 102)
avgcorrs = nanmean(corrs);
^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in eega_tArtifacts (line 202)
[ ~, bct ] = fhandle( EEG, inputs{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in preprocessing_fun (line 388)
EEG = eega_tArtifacts(EEG, Ppp.ArtBadEl, 'KeepRejPre', 1);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
arnodelorme commentedon Oct 2, 2026
This was moved to the APICE issue
neurokidslab/eeg_preprocessing#9