<div dir="ltr">Yanina,<div>It looks like your layout variable is called "layout", but your cfg.layout is looking for a variable called "lay".  The variable "lay" variable doesn't exist, but I bet "layout" does :-)</div><div><br></div><div>Best,</div><div><br></div><div>Raquel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 2:10 PM, Yanina Prystauka <span dir="ltr"><<a href="mailto:ojoe4ki@gmail.com" target="_blank">ojoe4ki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">Dear Fieldtripers!</span><div style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></div><div style="font-family:arial,sans-serif;font-size:12.7272720336914px">I have data collected with <span style="color:rgb(0,0,0);white-space:pre-wrap">Neuroscan 32 channels quickcap (1020 standard). There is no template layout for it so I tried to create it myself and had to use Robert Oostenveld's help to succeed (please, see </span><font color="#000000"><span style="white-space:pre-wrap"><a href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=2740" target="_blank">http://bugzilla.fcdonders.nl/show_bug.cgi?id=2740</a></span></font><span style="color:rgb(0,0,0);white-space:pre-wrap">).</span></div><div style="font-family:arial,sans-serif;font-size:12.7272720336914px"><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:12.7272720336914px"><span style="color:rgb(0,0,0);white-space:pre-wrap">So now I have a nice layout. I have checked it with </span></div><div style="font-family:arial,sans-serif;font-size:12.7272720336914px"><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">cfg = [];
cfg.layout = 'quickcap32.lay'
ft_layoutplot(cfg)</pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">And I have created a .mat file out of it with </font></pre><pre style="white-space:pre-wrap;width:50em"><pre style="white-space:pre-wrap;width:50em"><font color="#000000">layout = ft_prepare_layout(cfg)</font></pre><pre style="white-space:pre-wrap;width:50em"><pre style="white-space:pre-wrap;color:rgb(0,0,0);width:50em">save quickcap32.mat layout </pre><pre style="white-space:pre-wrap;color:rgb(0,0,0);width:50em"><font face="arial, helvetica, sans-serif">And according to the tutorial on Fieldtrip Donders website this .mat file </font><font face="arial, helvetica, sans-serif" style="font-size:12.7272720336914px">should </font><font face="arial, helvetica, sans-serif" style="font-size:12.7272720336914px">contain variable 'lay'.  </font><span style="font-size:12.7272720336914px;font-family:arial,helvetica,sans-serif">But now whenever I try to use the 'lay' variable </span><span style="font-size:12.7272720336914px;font-family:arial,helvetica,sans-serif">for whatever purposes </span><span style="font-size:12.7272720336914px;font-family:arial,helvetica,sans-serif">(e.g. plotting):</span></pre><pre style="white-space:pre-wrap;width:50em"><font color="#000000">templates_dir = 'D:/My Documents/MATLAB/template/layout/'<br></font></pre><pre style="white-space:pre-wrap;width:50em"><font color="#000000">load([templates_dir 'quickcap32.mat']);<br></font></pre><pre style="white-space:pre-wrap;width:50em"><font color="#000000">cfg             = [];<br></font></pre><pre style="white-space:pre-wrap;width:50em"><font color="#000000">cfg.layout = lay;</font></pre><pre style="white-space:pre-wrap;width:50em"><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">... I</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"> get this <i><b>Undefined function or variable 'lay'</b></i> message.</span></pre><pre style="white-space:pre-wrap;width:50em"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">What am I doing wrong? </span><span style="font-family:arial,helvetica,sans-serif;font-size:12.7272720336914px">Any tips will be GREATLY appreciated!</span></pre><pre style="white-space:pre-wrap;width:50em"><font face="arial, helvetica, sans-serif">Kind regards,</font></pre><pre style="white-space:pre-wrap;width:50em"><span style="font-family:arial,helvetica,sans-serif;font-size:12.7272720336914px">Yanina</span></pre></pre></pre></div></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>