<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I have electrode channel locations (in x,y,z coordinates) in a file format that I think is not supported by ft_read_sens. I would like to use ft_prepare_layout to project these locations into a 2d layout (for plotting and for cluster-based permutation tests). I see fromĀ <a href="https://www.fieldtriptoolbox.org/tutorial/layout/">https://www.fieldtriptoolbox.org/tutorial/layout/</a> that it's possible to do, but I can't figure out exactly how (it just says "you can use ft_prepare_layout", but not exactly how; I've tried the following two ways but I get a "no layout detected" error:</div><div><br></div><div>cfg = [];</div><div>cfg.elec = <the filename for my channel locations>;</div><div>lay = ft_prepare_layout(cfg);</div><div><br></div><div><div>cfg = [];</div><div>cfg.elec = <a 69x3 matrix of my xyz coordinates>;</div><div>lay = ft_prepare_layout(cfg);</div><div><br></div><div>Is there an example online somewhere of how to use ft_prepare_layout with just a set of xyz coordinates rather than loading a filename or template?</div><div><br></div><div>Thanks,</div><div>Steve</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div></div></div></div></div></div></div></div></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><span><div>---<br></div>Stephen Politzer-Ahles<br>The Hong Kong Polytechnic University<br>Department of Chinese and Bilingual Studies<br><a href="http://www.polyu.edu.hk/cbs/sjpolit/" target="_blank">http://www.polyu.edu.hk/cbs/sjpolit/</a></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>