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