<div dir="ltr"><div>I run the demo script of OpenMEEG for MEG from Fieldtrip demo script </div><div>I just changed the the  cfg.method from openmeeg to singleshell, I have the below error,</div><div>thanks for help</div><div><br></div><div><br></div>the call to "ft_prepare_headmodel" took 0 seconds<br>using gradiometers specified in the configuration<br>computing surface normals<br>creating sourcemodel based on user specified dipole positions<br>using gradiometers specified in the configuration<br>1 dipoles inside, 0 dipoles outside brain<br>the call to "ft_prepare_sourcemodel" took 3 seconds<br>computing leadfield<br>Error using  : <br>For colon operator with char operands, first and last operands must be<br>char.<br><br>Error in ft_prepare_leadfield (line 295)<br>        sourcemodel.leadfield{thisindx} =<br>        tmp(:,(i-1)*cfg.reducerank+(1:cfg.reducerank));<br><br>Error in openmeeg_meg_leadfield_example (line 70)<br>sourcemodel = ft_prepare_leadfield(cfg);<br> <br></div>