<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<pre>Dear fieldtrippers,<br> <br>I am having a hard time trying to compute the source interpolation.<br> <br>For source analysis I use:<br> <br>cfg.xgrid = 'auto'<br>cfg.ygrid = 'auto'<br>cfg.zgrid = 'auto'<br> <br>which later results in:<br> <br>source.dim = [length(cfg.xgrid) length(cfg.ygrid) length(cfg.zgrid)];<br>or<br>source.dim = [4 4 4];<br> <br>the problem here is that sourceinterpolate calls the function checkdata<br>where @ line 550:<br> <br>data.transform = pos / ind;<br> <br>here pos is a 4000x4 array and ind is a 64x4 array because ind is<br>computed as following:<br> <br>xgrid = 1:data.dim(1);<br>ygrid = 1:data.dim(2);<br>zgrid = 1:data.dim(3);<br>[x y z] = ndgrid(xgrid, ygrid, zgrid);<br>ind =  [x(:) y(:) z(:)];    <br> <br>so of course I get the error message that the array dimensions do not<br>match for division because you cannot divide a 4000x4 array by a 64x4<br>array.<br> <br>so then I tried:<br> <br>source.dim = [4 4 250];<br> <br>which results in the dimensions 4000x4 for ind and circumvents the<br>error message.However, I guess that besides diminishing my personal<br>frustration this does not really solve the problem.<br>So if anyone out there has an idea or a suggestion I would be very,<br>very, very thankful.<br> <br>Have nice week end,<br> <br>Frederic</pre><br /><hr />Damit Privates privat bleibt!  <a href='http://redirect.gimas.net/?n=M0811IE8DE&d=http://www.microsoft.com/downloads/results.aspx?pocId=&freetext=internet%20explorer%208%20beta%202&DisplayLang=de ' target='_new'>Jetzt den Internet Explorer 8 Beta downloaden!</a></body>
</html><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>