<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Mike, 
<div class=""><br class="">
</div>
<div class="">you can use eegh (eeglab command history: EEG.history) to see what functions were called. To automatise processing you would usually start with a for loop that repeats for each subject. Within the for loop put the analyses you want to perform
 at the particular point. See basic example below. (Also check: <a href="https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts" class="">
https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts</a>)</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class="">
<span style="color: #000000" class="">PATHIN = </span>'/Users/raw'</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class="">
<span style="color: #000000" class="">PATHOUT = </span>'/resampled_filtered'</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class="">
<span style="color: #000000" class="">subj = {</span>'1'<span style="color: #000000" class="">,
</span>'2'<span style="color: #000000" class="">, </span>'3'<span style="color: #000000" class="">,
</span>'4'<span style="color: #000000" class="">, </span>'5'<span style="color: #000000" class="">,
</span>'6'<span style="color: #000000" class="">, </span>'7'<span style="color: #000000" class="">,
</span>'8'<span style="color: #000000" class="">, </span>'9'<span style="color: #000000" class="">,
</span>'10'<span style="color: #000000" class="">};  </span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
[ALLEEG EEG CURRENTSET] = eeglab;</div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; min-height: 13px;" class="">
<br class="">
</p>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
<span style="color: #0433ff" class="">for</span> s = 1:length(subj)</div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; min-height: 13px;" class="">
        <br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">
<span style="color: #000000" class="">    </span>% Load </div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    EEG = pop_loadbv(PATHIN, [subj{s}, <span style="color: #b245f3" class="">'_nback.vhdr'</span>],[], [1 2 3 4 5 6 7 8 9 10 11 12 13 14
<span style="color: #0433ff" class="">...</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<span style="color: #0433ff" class="">...</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64]); </div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    [ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,<span style="color: #b245f3" class="">'gui'</span>,<span style="color: #b245f3" class="">'off'</span>); </div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class="">
<span style="color: #000000" class="">    EEG = pop_chanedit(EEG, </span>'lookup'<span style="color: #000000" class="">,</span>'/Users/Study 1/eeglab13_5_4b/plugins/dipfit2.3/standard_BESA/standard-10-5-cap385.elp'<span style="color: #000000" class="">);</span></div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; min-height: 13px;" class="">
 <br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">
<span style="color: #000000" class="">    </span>% Pre-proc</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    EEG = recode_nback(EEG);</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    EEG = pop_resample( EEG, 250);</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    EEG = pop_eegfiltnew(EEG, 0.5, 45, 1650, 0, [], 1);  </div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; min-height: 13px;" class="">
 <br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">
<span style="color: #000000" class="">    </span>% Safe</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier;" class="">
    [ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,<span style="color: #b245f3" class="">'setname'</span>,<span style="color: #b245f3" class="">'resampled_filtered'</span>,<span style="color: #b245f3" class="">'overwrite'</span>,<span style="color: #b245f3" class="">'on'</span>,<span style="color: #b245f3" class="">'gui'</span>,<span style="color: #b245f3" class="">'off'</span>); </div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class="">
<span style="color: #000000" class="">    EEG = pop_saveset(EEG,</span>'filename'<span style="color: #000000" class="">,[subj{s},
</span>'_nback_resampled_filtered.set'<span style="color: #000000" class="">],</span>'filepath'<span style="color: #000000" class="">, PATHOUT);</span></div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; min-height: 13px;" class="">
    </p>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Courier; color: rgb(4, 51, 255);" class="">
end<span style="color: #000000" class=""> </span></div>
<div class=""><span style="color: #000000" class=""><br class="">
</span></div>
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
Best, </div>
<div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
Clemens </div>
<div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<br class="">
</div>
<div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<br class="">
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 15 Aug 2016, at 23:12, Mike Urich <<a href="mailto:michaelurich210@gmail.com" class="">michaelurich210@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi all,<br class="">
<br class="">
Is there an easy way to see what functions are being called as you click through eeglab? I have a workflow of importing data from a text file, filtering, removing the mean, and running ICA and then viewing a Component Scroll plot. I need to perform this sequence
 on many datasets and it’ll be the same process for each one, so it would be fantastic to be able to automate this. Does anyone have any suggestions?<br class="">
<br class="">
Thanks!<br class="">
<br class="">
Mike Urich<br class="">
<a href="mailto:michaelurich210@gmail.com" class="">michaelurich210@gmail.com</a><br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html<br class="">
To unsubscribe, send an empty email to eeglablist-unsubscribe@sccn.ucsd.edu<br class="">
For digest mode, send an email with the subject "set digest mime" to eeglablist-request@sccn.ucsd.edu</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>