Dear FieldTrip users,<br><br>I'm trying to plot source stat data from individual subjects on the respective mri (according to the procedure suggested in the beamformer tutorial), but there seems to be a problem when I use sourceinterpolate (see below). <br>

<br>Does anybody have an idea what's going wrong here?<br><br>Thanks in advance!<br><br>Best,<br>Christine<br><br>the input is source data with 4560 positions<br>the input is volume data with dimensions [256 256 256]<br>

not downsampling anatomy<br>not downsampling inside<br>selecting subvolume of 0.0%<br>interpolating<br>??? Attempted to access sel(1); index out of bounds because numel(sel)=0.<br><br>Error in ==> sourceinterpolate>my_interpn at 380<br>

  progress(sel(1)/num, 'interpolating %.1f%%\n', 100*sel(1)/num);<br><br>Error in ==> sourceinterpolate at 275<br>interp.inside( sel) = my_interpn(double(functional.inside), ax(sel), ay(sel), az(sel), 'nearest', cfg.feedback);<br>

<br>Error in ==> PlotSourceData at 164<br>    sourceinterp = sourceinterpolate(cfg, statdiff,mri);<br><br><br>-- <br>Christine Gruetzner, geb. Tillmann<br>Max-Planck-Institut für Hirnforschung<br>Abt. Neurophysiologie<br>
Deutschordenstr. 46<br>
60528 Frankfurt am Main<br>Germany<br><br>Phone: +49 (0)69/6301-83225<br>E-Mail: <a href="mailto:tillmann@mpih-frankfurt.mpg.de" target="_blank">tillmann@mpih-frankfurt.mpg.de</a><br><a href="http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm" target="_blank">http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm</a><br>

<br><br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>