<html><head><base href="x-msg://603/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>don't have any data at hand right now. but i can't recall that a pos-field should be there after ft_sourceinterpolate (you get your data in 3D corresponding to the dimensions of your MRI). did you actually try ft_volumenormalise? did you run into problems and if yes what does the error look like?</div><div><br></div><div>totally unrelated to your problem (if there is any problem), I do not think that cfg.keepfilter is a meaningful input to this function.</div><div><br></div><div>best,</div><div>n</div><div><br><div><div>On 14.03.2012, at 17:28, Jason Chan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="DE" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Greetings,<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I am adapting the beamformer tutorial to my data.  When I<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">sourceinterpolate</span><span lang="EN-US"><span class="Apple-converted-space"> </span>the subtracted sourceA from sourceB data, the ‘pos’  disappears.  This seems to be important for the volume normalization and Grand Average.  I am running Fieldtrip version: 20110917.  I have placed the code below.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Many thanks in advance.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Jason<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">Young_CombineFilter_sourceDiff_16_3={};</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; "></span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: blue; ">for</span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; "><span class="Apple-converted-space"> </span>i=1:length(Young_CombineFilter_beamform_16_3);</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg=[];</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    Young_CombineFilter_sourceDiff_16_3{i} =Young_CombineFilter_beamform_16_3{i}.sourceA;</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    Young_CombineFilter_sourceDiff_16_3{i}.avg.pow =(Young_CombineFilter_beamform_16_3{i}.sourceA.avg.pow - Young_CombineFilter_beamform_16_3{i}.sourceB.avg.pow)./Young_CombineFilter_beamform_16_3{i}.sourceB.avg.pow;</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">   </span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg            = [];</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg.downsample = 2;</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg.parameter  =<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: rgb(160, 32, 240); ">'avg.pow'</span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">;</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg.anatomy    = mri{i};</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg.keepfilter=</span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: rgb(160, 32, 240); ">'yes'</span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">;</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    cfg.interpmethod=</span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: rgb(160, 32, 240); ">'linear'</span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">;</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">    Young_CombineFilter_sourceDiffInt_16_3{i}=ft_sourceinterpolate(cfg,Young_CombineFilter_sourceDiff_16_3{i}, mri_young{i});</span><span lang="EN-US" style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: 'Courier New'; color: blue; ">end</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black; ">;</span><span style="font-size: 12pt; font-family: 'Courier New'; "><o:p></o:p></span></div></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" style="color: blue; text-decoration: underline; ">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: blue; text-decoration: underline; ">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div></span></blockquote></div><br></div></body></html>