<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear list,
      <br>
      <br>
      I am encountering the same issue, even when calling the method
      help_memfree() in asr_process() once, not only after repeated
      calls.
      <br>
      <br>
      It must be some kind of memory-access error, I assume, where
      Matlab tries to ask for free memory space and the operating system
      either does not respond, or there is no free memory.
      <br>
      <br>
      I don't have the time to investigate that now, but I wanted to
      contribute that it is a problem under Linux even with the first
      call to the method (I assume, Narenda is running Windows?).
      <br>
      <br>
      @Narenda: A workaround might be to just set "maxmem" to a
      reasonable value (line 105 in asr_process()), then the rest works
      fine.
      <br>
      <br>
      <br>
      Info: I am running Linux Mint 18.1., 64-bit and Matlab 2017a
      64-bit
      <br>
      <br>
      <br>
      Kind regards,
      <br>
      <br>
      Sarah Blum
      <br>
      <br>
      <span class="moz-txt-tag">-- <br>
      </span>M.Sc. Sarah Blum
      <br>
      Neuropsychology Lab
      <br>
      Department of Psychology
      <br>
      University of Oldenburg
      <br>
      D-26111 Oldenburg
      <br>
      Germany
      <br>
      <br>
      Phone: +49-441-798-4946
      <br>
      Email: <a class="moz-txt-link-abbreviated"
        href="mailto:sarah.blum@informatik.uni-oldenburg.de">sarah.blum@informatik.uni-oldenburg.de</a></p>
    <br>
    <div class="moz-cite-prefix">On 09/18/2017 10:05 PM, Narendra Kumar
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABwwnHxj-G+YYqc9xSi3bq3aCZ57xdJnCgKS2GifKSpQHaoB-Q@mail.gmail.com">
      <pre wrap="">​Dear EEGLABlist users​,

​I use *clean_rawdata*
to reject bad channels and correct continuous data using Artifact Subspace
Reconstruction
​, I applied this on 30 subjects data using multiple subject analysis batch
script file. It worked well till data on 21 subjects but crashed on 22nd
subject with the following error:


Warning: A value of class "com.sun.management.OperatingSystem" was indexed
with no subscripts specified. Currently the result of this operation
is the indexed value itself, but in a future release, it will be an error.
</pre>
      <blockquote type="cite">
        <pre wrap="">In asr_calibrate>hlp_memfree (line 266)
</pre>
      </blockquote>
      <pre wrap="">  In asr_calibrate (line 114)
  In clean_asr (line 164)
  In clean_artifacts (line 219)
  In clean_rawdata (line 83)
  In preprocessing_win (line 105)
Determining per-component thresholds...Index exceeds matrix dimensions.

Error in asr_calibrate>fit_eeg_distribution (line 359)
X1 = X(1,:); X = bsxfun(@minus,X,X1);

Error in asr_calibrate (line 180)
    [mu(c),sig(c)] = fit_eeg_distribution(rms,min_
clean_fraction,max_dropout_fraction);

Error in clean_asr (line 164)
    state = asr_calibrate(ref_section.data,ref_section.srate,cutoff);

Error in clean_artifacts (line 219)
    EEG = clean_asr(EEG,burst_crit,[],[],[],burst_crit_refmaxbadchns,burst_crit_reftolerances,[]);
end

Error in clean_rawdata (line 83)
cleanEEG = clean_artifacts(EEG, 'FlatlineCriterion', arg_flatline,...

Error in preprocessing_win (line 105)
    EEG = clean_rawdata(EEG, -1, -1, 0.75, -1, 10, 0.25);


​Kindly suggest some solution.​

​Thanks,
Narendra​

Research Scholar
Department of Humanities and Social Sciences
Indian Institute of Technology Ropar
Punjab, India - 140001
Contact No.:- +91-8968945650
Homepage:- *<a class="moz-txt-link-freetext" href="https://www.sites.google.com/site/narendraiitrpr">https://www.sites.google.com/site/narendraiitrpr</a>
<a class="moz-txt-link-rfc2396E" href="https://www.sites.google.com/site/narendraiitrpr/"><https://www.sites.google.com/site/narendraiitrpr/></a>/*
Social Networking Sites: - Facebook
<a class="moz-txt-link-rfc2396E" href="https://www.facebook.com/narendra.karna.7"><https://www.facebook.com/narendra.karna.7></a>; Researchgate
<a class="moz-txt-link-rfc2396E" href="https://www.researchgate.net/profile/Narendra_Kumar22/"><https://www.researchgate.net/profile/Narendra_Kumar22/></a>

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Eeglablist page: <a class="moz-txt-link-freetext" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a>
To unsubscribe, send an empty email to <a class="moz-txt-link-abbreviated" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a>
For digest mode, send an email with the subject "set digest mime" to <a class="moz-txt-link-abbreviated" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
M.Sc. Sarah Blum
Neuropsychology Lab
Department of Psychology
University of Oldenburg
D-26111 Oldenburg
Germany

Phone: +49-441-798-4946
Email: <a class="moz-txt-link-abbreviated" href="mailto:sarah.blum@informatik.uni-oldenburg.de">sarah.blum@informatik.uni-oldenburg.de</a></pre>
  </body>
</html>