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

Caroline Lustenberger lustenberger.caroline at gmail.com
Sun Nov 24 00:34:03 PST 2019

Hello Adam and Neeraj

Thanks for your suggestions. I will play around with it and let you know
when I figured something out.


On Thu, Nov 21, 2019 at 6:03 PM Neeraj Sharma <neerajww at gmail.com> wrote:

> Hi Caroline,
> I also got the same error on doing a git clone yesterday and using the
> "Clean Raw Data" plugin from the GUI.
> I don't know the fix for this but the command line call clean_asr seems to
> work fine.
> To use this you can go to command line and type:
> >> help clean_asr
> to know the usage.
> (make sure you have added the plugin path to your current path - using
> addpath("plugin path"))
> Best regards,
> Neeraj
> On Thu, Nov 21, 2019 at 4: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