<div dir="ltr">Hello,<div>I would like to explain my problem. I am referring to the tutorial presented in this page: <a href="https://www.fieldtriptoolbox.org/workshop/natmeg2014/dipolefitting/#compare-the-eeg-and-meg-dipole-fits">https://www.fieldtriptoolbox.org/workshop/natmeg2014/dipolefitting/#compare-the-eeg-and-meg-dipole-fits</a></div><div>The issue is that, copying the code in this page, there is an error that I don't understand:</div><div><br></div><div><h3 id="gmail-construct-the-meg-volume-conduction-model" style="box-sizing:border-box;margin-top:0px;margin-bottom:0.5rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:500;line-height:1.2;color:rgb(33,37,41);font-size:1rem">Construct the MEG volume conduction model<a class="gmail-anchorjs-link" aria-label="Anchor" href="https://www.fieldtriptoolbox.org/workshop/natmeg2014/dipolefitting/#construct-the-meg-volume-conduction-model" style="box-sizing:border-box;color:rgb(176,37,44);text-decoration-line:none;background-color:transparent;opacity:0;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:1em;line-height:1;font-family:anchorjs-icons;padding-left:0.375em"></a></h3><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;text-align:justify;color:rgb(33,37,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px">Now that we have the anatomical MRI coregistered and resliced in to <a href="https://en.wikipedia.org/wiki/Isotropy" style="box-sizing:border-box;color:rgb(176,37,44);text-decoration-line:none;background-color:transparent">isotropic</a> voxels, we proceed and segment the brain, skull and scalp tissue.</p><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal"><span class="gmail-n" style="box-sizing:border-box">cfg</span> <span class="gmail-o" style="box-sizing:border-box;color:rgb(102,102,102)">=</span> <span class="gmail-p" style="box-sizing:border-box">[];</span>
<span class="gmail-n" style="box-sizing:border-box">cfg</span><span class="gmail-o" style="box-sizing:border-box;color:rgb(102,102,102)">.</span><span class="gmail-n" style="box-sizing:border-box">output</span> <span class="gmail-o" style="box-sizing:border-box;color:rgb(102,102,102)">=</span> <span class="gmail-p" style="box-sizing:border-box">{</span><span class="gmail-s1" style="box-sizing:border-box;color:rgb(64,112,160)">'brain'</span><span class="gmail-p" style="box-sizing:border-box">,</span> <span class="gmail-s1" style="box-sizing:border-box;color:rgb(64,112,160)">'skull'</span><span class="gmail-p" style="box-sizing:border-box">,</span> <span class="gmail-s1" style="box-sizing:border-box;color:rgb(64,112,160)">'scalp'</span><span class="gmail-p" style="box-sizing:border-box">};</span>
<span class="gmail-n" style="box-sizing:border-box">mri_segmented</span> <span class="gmail-o" style="box-sizing:border-box;color:rgb(102,102,102)">=</span> <span class="gmail-n" style="box-sizing:border-box">ft_volumesegment</span><span class="gmail-p" style="box-sizing:border-box">(</span><span class="gmail-n" style="box-sizing:border-box">cfg</span><span class="gmail-p" style="box-sizing:border-box">,</span> <span class="gmail-n" style="box-sizing:border-box">mri_resliced</span><span class="gmail-p" style="box-sizing:border-box">);</span></code></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal"><span class="gmail-p" style="box-sizing:border-box"><br></span></code></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal"><span class="gmail-p" style="box-sizing:border-box">When I run the function ft_volumesegment these errors appears:</span></code></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Error using ft_affinecoordinates<br>converting from scanras to acpc is not supported<br><br>Error in ft_convert_coordsys (line 169)<br> initial = ft_affinecoordinates(object.coordsys, target);<br><br>Error in ft_volumesegment (line 301)<br> mri = ft_convert_coordsys(mri, 'acpc');<br></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Hope you can help me understanding this issue.</pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">kind regards,</pre><pre class="gmail-highlight" style="color:rgb(33,37,41);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Sara</pre></div></div>