Hello again,<br><br>But I need to process my data later by ft_timelockstatistics.<br>I don't think this funtion accepts cell containing many structs.<br><br>I think its better to do average manually then call ft_lockanalysis, then ft_timelockstatistics. Right?<br>
<br>Hamza<br><br><br><div class="gmail_quote">On Thu, May 3, 2012 at 11:36 AM, Stephen Whitmarsh <span dir="ltr"><<a href="mailto:stephen.whitmarsh@gmail.com" target="_blank">stephen.whitmarsh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Hamza,<br>
<br>
Fieldtrip functions in generally do not work on several different<br>
'sets' of data at the same time.<br>
Call the function you are using (e.g. ft_timelockanalysis) separately<br>
for every set of trials and if you want put the output in a<br>
matrix{1:10} of datastructures (e.g. timelock).<br>
You can easily put it in a loop. Something like this:<br>
<br>
for i = 1:10<br>
cfg = [];<br>
cfg.trials = [(i-1)*10+1 : i*10];<br>
yourtimelockdata{i} = ft_function(cfg,yourdata)<br>
end<br>
<br>
Hope this helps,<br>
Stephen<br>
<br>
<br>
On 3 May 2012 10:23, Hamza Fawzi Altakroury (Student)<br>
<div><div class="h5"><<a href="mailto:hamzaf@sabanciuniv.edu">hamzaf@sabanciuniv.edu</a>> wrote:<br>
> Hello,<br>
><br>
> I want to average each 10 trials of 100 trials.<br>
> I don't know what to put in (cfg.trials)<br>
><br>
> I tried cfg.trials = [1:10; 1:10]; and cfg.trials = [1:10; 11:20];<br>
><br>
> It does not work?<br>
><br>
> Note: at the end I want to have a cell of 10 matices, not just one matrix.<br>
><br>
> Any thoughts?<br>
><br>
> Best,<br>
><br>
> --<br>
> Hamza Fawzi Altakroury<br>
> Graduate student - MA<br>
> Faculty of Engineering and Natural Sciences<br>
> Sabancı University<br>
><br>
</div></div>> _______________________________________________<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>
<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></blockquote></div><br><br clear="all"><br>-- <br>Hamza Fawzi Altakroury<br>Graduate student - MA<br>
Faculty of Engineering and Natural Sciences<br>Sabancı University<br>