<div dir="ltr"><div>Dear fieldtrip-community, </div><div><br></div><div>I struggle at plotting source reconstruction results, and my routine even fails when using the template structural data. </div><div>I think it is based on a shortcoming of the ft_sourceinterpolation function. This is why I am optimistic to find help in this platform: </div><div>I prepare the leadfields based on the standard_sourcemodel3d6mm, the vol called standard_bem.mat, the electrode positions defined in standard_1005.elc.</div><div>Since some of the dipoles that are assigned as "inside" in the sourcemodel3d6mm are actually sticking out of the inner bem boundary, leading to distorted leadfields, I re-prepare the sourcemodel based on the following specifications: <br></div><div><br></div><div>mri=ft_read_mri('single_subj_T1.nii');</div><div>mri.coordsys = 'spm';    </div><div>mri = ft_volumereslice([], mri);</div><div>cfg=[];<br>cfg.mri  = mri; </div><div>cfg.elec=elec;<br>cfg.vol=vol;</div><div>cfg.grid.warpmni   = 'yes';<br>cfg.grid.template  = grid; % sourcemodel3d6mm<br>cfg.grid.nonlinear = 'no';<br>cfg.moveinward=5;<br>cfg.inwardshift=0;<br>grid    = ft_prepare_sourcemodel(cfg);</div><div><br></div><div>this comes out with a vector of positions in three dimensional space, all of them being assigned to inside and none of them as outside. </div><div>The leadfields prepared based on this sourcemodel look very convincing and the ft_sourceanalysis function also works. </div><div>But the problem is to interpolate this on the anatomical image: </div><div>Nested in the function ft_sourceinterpolate, the function ft_checkdata, specifically the subfunction source2volume leads to a misconfiguration with all the positions of the functional data being distributed in to a full 3D volume. In the end the orthoplot of the brain is a big fully activated cube. </div><div><br></div><div>I hope someone has a good idea how to deal with this issue in fieldtrip and shares his/her expertise with us. </div><div><br></div><div>Many greetings, </div><div><br></div><div>Marlene</div></div>