<span class="comment">% -----------------------------------------------------------------</span>
        <span class="comment">% Initializes an array of discontinuity segments</span>
        <span class="keyword">function</span> seg = initializeDiscontinuitySegArray(~,n)
            seg(n,1) = DiscontinuityElement_M([],[]);
        <span class="keyword">end</span>

        <span class="comment">% -----------------------------------------------------------------</span>
        <span class="comment">% Initial