if</span> ~numel(AttachmentPoint)
0051     s_mother=0;
0052     pos_attachment_pt=[0 0 0]';
0053 <span class="keyword">else</span>
0054     test=0;
0055     <span class="keyword">for</span> i=1:numel(OsteoArticularJoint)
0056         <span class="keyword">for</span> j=1:size(OsteoArticularJoint(i).anat_position,1)
0057             <span class="keyword">if</span> strcmp(AttachmentPoint,OsteoArticularJoint(i).anat_position{j,1})
0058                s_mother=i;
0059                pos_attachment_pt=OsteoArticu