[Eeglablist] ASR for sleep data: Error in distance function

Caroline Lustenberger lustenberger.caroline at gmail.com
Thu Nov 21 01:20:22 PST 2019

Hello Christian and Makoto

I am currently testing the ASR (newest version and GUI, not according to
Makoto's preprocessing pipeline) for my 8h sleep recording. Since the
signal is non-stationary and of course with the change in sleep stage,
there is considerable change in the EEG (e.g. slow waves) I hope to
optimize the settings accordingly. This of course requires me to filter
below 0.5 Hz (above will remove important slow wave information). In
addition I want to set the BurstCriterion very high to only clean strong
burst artifacts and not real sleep oscillations (however, not to remove any
datapoints, I will require the continuous set without gaps). Do you have
any experience with applying ASR to sleep data and related to that any

Anyway, testing on my side is failing already in the beginning since with
the new ASR version even when using the default EEG = clean_artifacts(EEG)
gives me the following error:

Error using distance (line 93)
Not enough input arguments.

Error in clean_artifacts (line 230)
    if ~strcmpi(distance, 'euclidian')

Do you have any idea why this error occurs?

Thank you very much for your help with this.

All the best,

More information about the eeglablist mailing list