i will try that, thank you very very much!<br><br><div class="gmail_quote">On Tue, Jun 26, 2012 at 3:15 PM, cornelius abel <span dir="ltr"><<a href="mailto:cornabel@googlemail.com" target="_blank">cornabel@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is a workaround:<br>
It seems that it works if you copy the functional data from "GrandAVG .avg.avg.pow" to "GrandAVG .avg.pow" prior to interpolation (and then using cfg.parameter='avg.pow').<br>
<br>
I posted it to the bugzilla system.<br>
<br>
Cornelius<br>
<br>
Am 23.06.2012 22:01, schrieb jan-mathijs schoffelen:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Martin,<br>
<br>
In general, the more info you can provide us with, the more likely it is that anybody can help you. The problem you sketch is too vague to even try start giving hints. It would be best if you could provide us with some detailed error messages to begin with. Even better would be if you create an account on our bugzilla-website, where you can also upload a script and some (small) data structure that would allow us to reproduce the problem.<br>
<br>
Best wishes,<br>
<br>
Jan-Mathijs<br>
<br>
PS: <a href="http://bugzilla.fcdonders.nl" target="_blank">http://bugzilla.fcdonders.nl</a><br>
<br>
<br>
On Jun 23, 2012, at 4:05 PM, Martin Winkels wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I have the same Problem. I can plot my LCMV-Beamformer results on an anatomy. And I can plot the results of the normalize script. But I can't plot the GrandAVG or the Stats results on that anatomy. The interpolate function doesn' work. Without anatomy it works just fine.<br>
<br>
Any hint?<br>
<br>
Thanks, Martin<br>
<br></div><div><div class="h5">
On Sat, Jun 23, 2012 at 8:19 AM, jan-mathijs schoffelen <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a> <mailto:<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@<u></u>donders.ru.nl</a>>> wrote:<br>
<br>
Hi Cornelius,<br>
<br>
Could it be that the parameter 'avg.avg.pow' does not work?<br>
<br>
Best,<br>
<br>
JM<br>
<br>
On Jun 22, 2012, at 2:38 PM, cornelius abel wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Dear Fieldtrip list,<br>
<br>
i successfully beamformed some steady state activity and the<br>
sourceplots per subject are looking very nice.<br>
As a next step I tried to calculate a grand average using<br>
ft_sourcegrandaverage:<br>
<br>
cfg=[];<br>
cfg.keepindividual='no';<br>
cfg.parameter='avg.pow';<br>
GACont= ft_sourcegrandaverage(cfg, AllsourceCont{:});<br>
<br>
giving me the following structure:<br>
<br>
GACont =<br>
pos: [3570x3 double]<br>
dim: [17 14 15]<br>
avg: [1x1 struct]<br>
var: [1x1 struct]<br>
dimord: 'voxel'<br>
inside: [1846x1 double]<br>
outside: [1724x1 double]<br>
df: [3570x1 double]<br>
cfg: [1x1 struct]<br>
<br>
but interpolating this onto an anatomy always gives me an error:<br>
<br>
cfg = [];<br>
cfg.downsample= 2;<br>
cfg.parameter = 'avg.avg.pow';<br>
sourceDiffInt= ft_sourceinterpolate(cfg, GACont , mri);<br>
<br>
/??? Error using ==> interpn at 155/<br>
///Wrong number of input arguments or some dimension of V is<br>
less than 2./<br>
///Error in ==> ft_sourceinterpolate>my_<u></u>interpn at 464/<br>
///av(sel) = interpn(fv, ax(sel), ay(sel), az(sel), interpmethod);/<br>
///Error in ==> ft_sourceinterpolate at 368/<br>
///av( sel) = my_interpn(fv, ax(sel), ay(sel), az(sel),<br>
cfg.interpmethod, cfg.feedback);/<br>
<br>
however interpolating a single subject source data works just<br>
fine...<br>
<br>
cfg = [];<br>
cfg.downsample= 2;<br>
cfg.parameter = 'avg.pow';<br>
sourceDiffInt= ft_sourceinterpolate(cfg, AllsourceCont{1} , mri);<br>
<br>
<br>
What am i doing wrong here, any ideas?<br>
<br>
<br>
<br>
Greetings, Cornelius<br>
<br>
______________________________<u></u>_________________<br>
fieldtrip mailing list<br></div></div>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a> <mailto:<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.<u></u>nl</a>><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/<u></u>mailman/listinfo/fieldtrip</a><br>
</blockquote><div class="im">
<br>
Jan-Mathijs Schoffelen, MD PhD<br>
<br>
Donders Institute for Brain, Cognition and Behaviour,<br>
Centre for Cognitive Neuroimaging,<br>
Radboud University Nijmegen, The Netherlands<br>
<br>
Max Planck Institute for Psycholinguistics,<br>
Nijmegen, The Netherlands<br>
<br></div>
<a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a> <mailto:<a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.<u></u>ru.nl</a>><br>
Telephone: <a href="tel:%2B31-24-3614793" value="+31243614793" target="_blank">+31-24-3614793</a> <tel:%2B31-24-3614793><br>
<br>
<br>
______________________________<u></u>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a> <mailto:<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.<u></u>nl</a>><div class="im"><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/<u></u>mailman/listinfo/fieldtrip</a><br>
<br>
<br>
______________________________<u></u>_________________<br>
fieldtrip mailing list<br>
</div><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a> <mailto:<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.<u></u>nl</a>><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/<u></u>mailman/listinfo/fieldtrip</a><br>
</blockquote><div class="im">
<br>
Jan-Mathijs Schoffelen, MD PhD<br>
<br>
Donders Institute for Brain, Cognition and Behaviour,<br>
Centre for Cognitive Neuroimaging,<br>
Radboud University Nijmegen, The Netherlands<br>
<br>
Max Planck Institute for Psycholinguistics,<br>
Nijmegen, The Netherlands<br>
<br>
</div><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a> <mailto:<a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.<u></u>ru.nl</a>><div class="im">
<br>
Telephone: <a href="tel:%2B31-24-3614793" value="+31243614793" target="_blank">+31-24-3614793</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/<u></u>mailman/listinfo/fieldtrip</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/<u></u>mailman/listinfo/fieldtrip</a><br>
</div></div></blockquote></div><br>