<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.x614019680msonormal, li.x614019680msonormal, div.x614019680msonormal
{mso-style-name:x_614019680msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Dear community, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My name is Kamil Hiralal and I am a PhD student at the Erasmus Medical Center in Rotterdam.
<o:p></o:p></p>
<p class="MsoNormal">I am currently trying to analyze previously collected fNIRS data from a study investigating phenotypical overlap between children with autism spectrum disorder and Fragile X syndrome.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We have measured fNIRS signal using an Artinis device with a custom channel template with 8 channels of interest placed over the left and right frontal hemispheres. For both the left and right hemisphere, we have also used a short channel
as reference. <o:p></o:p></p>
<p class="MsoNormal">I am currently trying to re-reference our normal distance channels based on the short channels, but I am having some trouble and was hoping somebody could help me out.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I am trying to run the ft_nirs_referencechannelsubtraction() function, I get the following error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="x614019680msonormal"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Unable to perform assignment because the left and right sides have a different number of elements.</span></i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="x614019680msonormal"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> Error in ft_nirs_optodedistance (line 89)</span></i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="x614019680msonormal"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> optodedistance(posIdx) = sqrt( (xf(idxR)-xf(idxT)).^2+(yf(idxR)-yf(idxT)).^2 ); % Pythagorean theorem</span></i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="x614019680msonormal"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Error in ft_nirs_referencechannelsubtraction (line 123)</span></i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="x614019680msonormal"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif">distances = ft_nirs_optodedistance(datain);</span></i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal">I am using the default cfg set-up (shortdistance = 1.5, closedistance = 15, method = ‘QR’, verbose = FALSE). I am also using raw NIRS data, as outputted by FT_PREPROCESSING. I hope anyone might be able to help me with this question!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best, <o:p></o:p></p>
<p class="MsoNormal">Kamil Hiralal<o:p></o:p></p>
</div>
</body>
</html>