<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 14/01/2013 22:14, Emma Holmes wrote:<br>
    </div>
    <blockquote
cite="mid:CAOXK68iA7UYQob9yQ11XkcUSQr2Rxf5+4BB_GJin+1s3V_i8Bg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <p class="">Dear FieldTrip users,</p>
        <p class=""> </p>
        <p class="">I would like to define the positions of the EEG
          electrodes
          myself.</p>
        <p class="">I have a structure containing the x,y,z co-ordinates
          and
          channel names for 66 channels. However, I am having trouble
          converting this to
          a FieldTrip structure.</p>
        <p class=""> </p>
        <p class="" style="text-autospace:none">I’m trying to use the
          ft_prepare_layout() function.</p>
        <p class="" style="text-autospace:none">Can anyone tell me what
          format
          the input structure should be in? i.e. what fields it should
          contain.</p>
        <p class="" style="text-autospace:none">Here, I’m referring to
          the part
          of the documentation ‘cfg.elec:  structure with electrode
          positions’, but
          can’t seem to find any explanation of what the layout of this
          structure should
          be.</p>
        <p class="" style="text-autospace:none"> </p>
        <p class="" style="text-autospace:none">Many thanks,</p>
        <p class="" style="text-autospace:none">Emma</p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    Hello<br>
    <br>
    First create a structure called elec with two fields in int<br>
    elec.pnt -> N x 3 matrix -> electrode positions<br>
    elec.label - > 1 x N cell -> electrode label<br>
    <br>
    Then you can write the following script<br>
    <br>
    cfg = []<br>
    cfg.elec = elec;<br>
    lay = ft_prepare_layout(cfg, data);<br>
    <br>
    where data is as provided by ft_preprocessing etc<br>
    <br>
    Hope this works.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
With Best Regards,
Narayan P Subramaniyam, M.Sc.
Researcher/PhD student
Department of Electronics and Communications Engineering
Tampere University of Technology
Finn-Medi 1, 4th Floor, Room 203
Biokatu 6, FI-33520 Tampere, Finland

Tel: +358 (0)40 198 1951
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:narayan.ps@tut.fi">narayan.ps@tut.fi</a>
</pre>
  </body>
</html>