<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><P>Dear Emma,</P>
<P> </P>
<P>FieldTrip is moving towards layouts that are based on an image (for reference) and that are stored in a .mat file. For some examples, see:</P>
<P> </P>
<P><A href="http://fieldtrip.fcdonders.nl/template/layout">http://fieldtrip.fcdonders.nl/template/layout</A></P>
<P> </P>
<P>The layout structure stored in those .mat files contains fields that describe the position (.pos), the width (.width), and the height (.height), and the naming (.label) of the electrodes. Furthermore, it contains fields that describe the topographic interpolation boundaries (.mask) and the outlines of the 'head' (.outline).</P>
<P> </P>
<P>Previous, and still supported, layout files (with a  .lay extension) typically contain a data matrix consisting of 5 columns. The first two columns describe the position of each electrode whereas the third, fourth, and fifth column describe the width, height, and label (i.e. number/name) for each electrode respectively.</P>
<P> </P>
<P>If you have a bitmap image, I'd recommend to create a layout variable and to store it in a .mat file. Try using the following commands:</P>
<P> <BR>cfg.img = '*.bmp' <BR>lay = ft_prepare_layout(cfg, [])</P>
<P> </P>
<P>Yours,</P>
<P>Arjen<BR><BR></P>
<P>
<HR id=zwchr>
</P>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><B>Van: </B>"Emma Holmes" <eh776@york.ac.uk><BR><B>Aan: </B>fieldtrip@science.ru.nl<BR><B>Verzonden: </B>Maandag 14 januari 2013 21:14:23<BR><B>Onderwerp: </B>[FieldTrip] Electrode location structure<BR><BR>
<DIV dir=ltr>
<P>Dear FieldTrip users,</P>
<P> </P>
<P>I would like to define the positions of the EEG electrodes myself.</P>
<P>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> </P>
<P>I’m trying to use the ft_prepare_layout() function.</P>
<P>Can anyone tell me what format the input structure should be in? i.e. what fields it should contain.</P>
<P>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> </P>
<P>Many thanks,</P>
<P>Emma</P></DIV><BR>_______________________________________________<BR>fieldtrip mailing list<BR>fieldtrip@donders.ru.nl<BR>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</BLOCKQUOTE><BR></div></body></html>