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

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Thu Nov 21 18:43:40 PST 2019

Dear Caroline,

Sorry for the trouble. I transferred control over (former) clean_rawdata to
Arno, and I did not have a chance to use the renewed one.

If you want to use my last version, please find the attached zip file. I
don't know if EEGLAB mailing list allows it, but let me try it first.


On Thu, Nov 21, 2019 at 1:43 AM Caroline Lustenberger <
lustenberger.caroline at gmail.com> wrote:

> 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
> recommendations?
> 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,
> Caroline
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu

More information about the eeglablist mailing list