<p dir="ltr">Hi Tyler,</p>
<p dir="ltr">If you have FieldTrip on your matlab search path (the &#39;standalone&#39; not &#39;lite&#39; version) - could you check which one is used by matlab?<br>
which(&#39;ft_inside_vol.m&#39;)<br>
which(&#39;ft_prepare_sourcemodel&#39;)</p>
<p dir="ltr">This may be relevant because current FieldTrip docummentation of ft_inside_vol suggests that it no longer accepts key - value input pairs:<br>
<a href="http://fieldtrip.fcdonders.nl/reference/ft_inside_vol">http://fieldtrip.fcdonders.nl/reference/ft_inside_vol</a></p>
<p dir="ltr">My guess is that either you have previous eeglab folders or standalone  FieldTrip on your search path. This could result in a confusion when incompatible ft_ functions are being called.</p>
<p dir="ltr"> </p>
<div class="gmail_quote">14 lut 2014 23:28 &quot;Tyler Grummett&quot; &lt;<a href="mailto:tyler.grummett@flinders.edu.au">tyler.grummett@flinders.edu.au</a>&gt; napisał(a):<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<div style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello eeglab,<br>
</p>
<p><br>
</p>
<p>I have just recently updated to the latest version of eeglab, where I was on version 12_0_1_0b previously<br>
</p>
<p>and I get the following error message when running pop_multifit<br>
</p>
<p><br>
</p>
<div><span style="font-family:arial,helvetica,sans-serif">Error using ft_inside_vol</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">Too many input arguments.</span></div>
<div><br style="font-family:arial,helvetica,sans-serif">
</div>
<div><span style="font-family:arial,helvetica,sans-serif">Error in ft_prepare_sourcemodel (line 689)</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">  inside = ft_inside_vol(grid.pos, vol, &#39;grad&#39;, sens, &#39;headshape&#39;, cfg.headshape, &#39;inwardshift&#39;,</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">  cfg.inwardshift); % this returns a boolean vector</span></div>
<div><br style="font-family:arial,helvetica,sans-serif">
</div>
<div><span style="font-family:arial,helvetica,sans-serif">Error in ft_dipolefitting (line 312)</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">  grid = ft_prepare_sourcemodel(tmpcfg);</span></div>
<div><br style="font-family:arial,helvetica,sans-serif">
</div>
<div><span style="font-family:arial,helvetica,sans-serif">Error in dipfit_gridsearch (line 106)</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">source = ft_dipolefitting(cfg, comp);</span></div>
<div><br style="font-family:arial,helvetica,sans-serif">
</div>
<div><span style="font-family:arial,helvetica,sans-serif">Error in pop_dipfit_gridsearch (line 135)</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">  EEGOUT = dipfit_gridsearch(EEG, &#39;component&#39;, select, &#39;xgrid&#39;, xgrid, &#39;ygrid&#39;, ygrid, &#39;zgrid&#39;, zgrid,</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">  options{:});</span></div>
<div><br style="font-family:arial,helvetica,sans-serif">
</div>
<div><span style="font-family:arial,helvetica,sans-serif">Error in pop_multifit (line 133)</span></div>
<div><span style="font-family:arial,helvetica,sans-serif">        EEG = pop_dipfit_gridsearch( EEG, [1:ncomps], ...</span><span style="font-size:8pt;font-family:arial,helvetica,sans-serif"></span><br>
</div>
<p><br>
</p>
<div>
<p>Any help will be greater appreciated.<br>
</p>
<p><br>
</p>
<p>I went back to that previous version and pop_multifit appears to be working<br>
</p>
<p><br>
</p>
<p>Tyler.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div name="divtagdefaultwrapper" style="font-family:calibri,arial,helvetica,sans-serif;margin:0px">
<div style="font-family:tahoma;font-size:13px">
<div style="font-family:tahoma;font-size:13px">
<div style="font-family:tahoma;font-size:13px">
<div style="font-size:13px">*************************
<div style="font-family:tahoma"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66124</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject &quot;set digest mime&quot; to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div>