<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello all,<div><br></div><div style="text-align:justify"><font face="arial, sans-serif">I have performed <span style="color:rgb(33,37,41);text-align:justify">source reconstruction and now I want to interpolate an atlas onto my sourcemodel, and I am following this tutorial:</span></font></div><div><a href="http://www.fieldtriptoolbox.org/faq/how_can_i_map_source_locations_between_two_different_representations/">http://www.fieldtriptoolbox.org/faq/how_can_i_map_source_locations_between_two_different_representations/</a><br></div><div><br></div><div>I have downloaded the source model: <span style="color:rgb(178,69,243);font-family:Courier;font-size:10px">standard_sourcemodel3d10mm.mat </span>and the atlas <span style="color:rgb(178,69,243);font-family:Courier;font-size:10px">ROI_MNI_V4.nii </span>mentioned in the tutorial and computed this code:</div><div><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">   > atlas_MNI = ft_read_atlas(<span style="color:rgb(178,69,243)">'ROI_MNI_V4.nii'</span>);</p>
<p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;color:rgb(178,69,243)"><span style="color:rgb(34,34,34)">   ></span><span style="color:rgb(34,34,34)"> </span><span style="color:rgb(0,0,0)">load(</span>'standard_sourcemodel3d10mm.mat'<span style="color:rgb(0,0,0)">)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;min-height:12px">                        </p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;min-height:12px">   >  cfg = [];</p>
<p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">   > cfg.interpmethod = <span style="color:rgb(178,69,243)">'nearest'</span>;</p>
<p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">   > cfg.parameter = <span style="color:rgb(178,69,243)">'tissue'</span>;</p>
<p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">   > sourcemodel2 = ft_sourceinterpolate(cfg, atlas_MNI, sourcemodel);</p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><br></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">However, I get this error:</span></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i>Reference to non-existent field 'tissue'.</i></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i><br></i></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i>Error in getsubfield (line 45)</i></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i>  s = s.(t{k});</i></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i><br></i></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i>Error in ft_sourceinterpolate (line 215)</i></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><i>  if ~iscell(getsubfield(functional, cfg.parameter{i}))      </i>                <br></p></div><div><br></div><div>The atlas_MNI structure is defined as:</div><div><div>            <i>dim: [91 109 91]<br></i></div><div><i>            hdr: [1×1 struct]</i></div><div><i>      transform: [4×4 double]</i></div><div><i>           unit: 'mm'</i></div><div><i>       coordsys: 'unknown'</i></div><div><i>         brick0: [91×109×91 uint16]</i></div><div><i>    brick0label: {1×9170 cell}</i></div></div><div><br></div><div>And the sourcemodel is:</div><div><div><i>dim: [18 21 18]</i></div><div><i>       pos: [6804×3 double]</i></div><div><i>    inside: [6804×1 logical]</i></div><div><i>       cfg: [1×1 struct]</i></div><div><i>      unit: 'cm'</i></div></div><div><br></div><div>I know that the units are not equal, but the error does not come from that argument. </div><div>Someone knows how can I handle this error?</div><div><br></div><div>Thank you in advance,</div><div>Sara</div><div><br></div><div><br></div><div><span style="color:rgb(178,69,243);font-family:Courier;font-size:10px"><br></span></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>