<div dir="ltr">Dear Natali,<div><br></div><div><p class="MsoNormal"><font color="#0000ff">> Do I have to define the working directory and the dataset name before this step? Do I have to have rawData folder?<u></u><u></u></font></p><div><br></div><div>Good point! You don't want to repeat the boring manual button clicking 2,000 times. That's a good motivation to start coding.</div><div><br></div><div class="gmail_extra">The code is already written to loop across all the subjects (i.e., all the .bdf files under the folder). I recommend you observe how it works by step by step using a 'debug mode' of Matlab (i.e., put a break point in the first line of code, run it, use step-by-step progress button from Matlab UI).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 28, 2017 at 1:55 AM, Bozhilova, Natali <span dir="ltr"><<a href="mailto:natali.bozhilova@kcl.ac.uk" target="_blank">natali.bozhilova@kcl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_2421709960516622288WordSection1">
<p class="MsoNormal">Dear Makoto,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am a first year PhD student and I have been using your pre-processing pipeline to prepare my data for ICA. I have found it really useful. However, I am still struggling with looping the participants.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If you do not mind, would you be kind to help me with the looping so I do not have to load every single participant manually?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:1pt dashed rgb(47,111,171);padding:12pt;background:rgb(249,249,249)">
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black">% Step 1: Change the option to use double precision.<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black">cd('/data/project/example')<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black">rawDataFiles = dir('*.bdf');<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black">for subjID = 1:length(rawData)
<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black">    loadName = rawDataFiles(subjID).name;<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:15.6pt;background:rgb(249,249,249);border:none;padding:0cm">
<span style="font-size:9.5pt;font-family:"Courier New";color:black">    dataName = loadName(1:end-4);<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Do I have to define the working directory and the dataset name before this step? Do I have to have rawData folder?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Best wishes,<u></u><u></u></p>
<p class="MsoNormal">Natali<u></u><u></u></p>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div></div>