             <span class="keyword">continue</span>;
                    <span class="keyword">end</span>

                    <span class="comment">% Check for existing interaction</span>
                    <span class="keyword">if</span> (any(p1.neigh_pid == p2.id))
                        <span class="comment">% Get interaction object</span>
                        int = findobj(p1.interacts,<span class="string">'elem2'</span>,p2);

                        <span class="comment">% Compute separation betwe