<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Dear Roey,<br>
<br>
of course there is a way, actual several. I don't see a reason why
you would want to do that though :) The interpolation purpose is
mainly for plotting, not for performing fancy statistics or other
analyses. In case you want to go to a finer spatial resolution,
I'd do the reconstruction on a finer grid (and there, you will be
faced with just physical and mathematical constraints in terms of
spatial accuracy). That way, your reconstruction will be at least
based on a physical model, not on some 'weird' linear
interpolation.<br>
<br>
Anyway, to answer your question:<br>
First, there is a cfg.parameter field, with which you can specify
the parameter. If that does not work, the easiest way for you
would be to go to the code of ft_sourceinterpolate at line 171,
copy the lines up to 184 and put these into your own function. You
would need to change them appropriately, so that you loop over
trials. As I said, there are other ways, but that would be the
most elegant, fastest (computationally) and easiest to understand.<br>
<br>
Best,<br>
Jörn<br>
<br>
On 9/2/2013 4:54 PM, Roey Schurr wrote:<br>
</div>
<blockquote
cite="mid:CAHm4wZCmS3DRXeQfQAGg7XwU5PjHB3UjhsSd3FAELLF81J1vpQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">Hi all,</div>
<div style=""><br>
</div>
<div style="">We are interested in comparing two source
reconstruction calculated using EEG records taken in two
different conditions (not ERP), from different subjects,
across the group.</div>
<div style=""><br>
</div>
<div style="">As we see it, what we must do is the following:</div>
<div style=""><br>
</div>
<div style="">1) <span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">ft_sourceanalysis
(for each condition in each subject, in all trials)</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">2)
ft_sourceinterpolate (the same)</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">3)
ft_volumenormalise (the same)</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">4) </span><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">ft_sourcegrandaverage</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">5) </span><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">ft_sourcestatistics</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%"><br>
</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">The
problem is </span><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px">ft_sourceinterpolate</span><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px"> will
not interpolate each trial individually, as there is no way
to give it the "pow" field per trial.</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px"><br>
</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px">Is
there a way to performd the interpolation over the
anatomycal MRI per trial?</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px"><br>
</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px">Thank
you so much!</span></div>
<div style=""><span
style="font-family:Calibri,sans-serif;font-size:14.44444465637207px;line-height:15.555556297302246px">Aia
and Roey</span></div>
<span dir="RTL"></span><span dir="RTL"
style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif"><span
dir="RTL"></span></span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>