Dear Johann,<div><br></div><div>The function prepare_design should not be called by statistics_wrapper in this specific case, since the cfg.design is specified in this tutorial example.</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Calibri, Geneva, Arial, Verdana, sans-serif; font-size: 12px; line-height: 15px; "><pre class="code" style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-size: 12px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); color: rgb(51, 51, 51); overflow-x: hidden; overflow-y: hidden; font-family: Consolas, 'Andale Mono', Menlo, Monaco, monospace; background-color: rgb(247, 249, 250); white-space: pre-wrap; width: 640px; ">

cfg.design  = [ones(size(tleft.trial,1),1); 2*ones(size(tright.trial,1),1)];</pre></span></div><div><br></div><div>Be sure to specifically add the multivariate directory and subdirectories to your path for this example, otherwise it will crash complaining of not finding other functions (for example ft_mv_standardizer.m)</div>

<div><br></div><div>Best,</div><div>Johanna</div><div><br></div><div><br><div class="gmail_quote">On 7 June 2011 01:36, Johann Heinz Martínez Huartos <span dir="ltr"><<a href="mailto:johemart@gmail.com">johemart@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello dear fieldtrip guys.<br><br>Im new using this toolbox and i dont understand why is happened this error that i think it must be easy to solve but I have tryed and nothing happend. The thing is that im following (step by step) the tutorial for multivariableanalysis from fieldtrip wiki using the data that web link offer us. But when I run the command:<br>


<br><span style="background-color:rgb(255, 255, 102)">stat = ft_timelockstatistics(cfg,tleft,tright);</span><br clear="all"><br>there are appear those errors:<br><br><span style="color:rgb(255, 0, 0)">??? Reference to non-existent field 'statistic'.</span><br style="color:rgb(255, 0, 0)">


<br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">Error in ==> prepare_design at 67</span><br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">if any(strcmp(cfg.statistic,{'indepsamplesT','indepsamplesregrT','indepsamplesZcoh','indepsamplesF'}))</span><br style="color:rgb(255, 0, 0)">


<br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">Error in ==> statistics_wrapper at 249</span><br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">  [cfg] = prepare_design(cfg);</span><br style="color:rgb(255, 0, 0)">


<br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">Error in ==> ft_timelockstatistics at 123</span><br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">[stat, cfg] = statistics_wrapper(cfg, varargin{:});</span><br style="color:rgb(255, 0, 0)">


<br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">Error in ==> JohannTestFieldtrip at 45</span><br style="color:rgb(255, 0, 0)"><span style="color:rgb(255, 0, 0)">stat = ft_timelockstatistics(cfg,tleft,tright);</span><br style="color:rgb(255, 0, 0)">


<br>and i Dunno what can i do...<br><br>Im using Matlab (R2011a) and the (fieldtrip-20110603). I have been looking for the documentation and i coundt find out how to fix it.<br><br>Is it probably the matlab version very new?<br>


Which would be the last matlab version available using for?<br><br>Thanks<br><br><br>-- <br>Atentamente:<br><font color="#888888">Johann Martínez.<br>
</font><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>