       <span class="comment">% check if there are more than two nodes per element in the transect</span>
0110         <span class="comment">% first get all possible elements in the transect</span>
0111         <span class="keyword">for</span> ii=1:length(idx)
0112             checkelems{ii,1}=find(Mobj.tri(:,1)==idx(ii));
0113             checkelems{ii,2}=find(Mobj.tri(:,2)==idx(ii));
0114             checkelems{ii,3}=find(Mobj.tri(:,3)==idx(ii));
0115             
0116         <span class="keyword">end</sp