span>

<span class="comment">% plot ellipses around tips of pendulums (if M, S exist)</span>
<span class="keyword">try</span>
  <span class="keyword">if</span> max(max(S))&gt;0
    [M1 S1 M2 S2] = getPlotDistr_pendubot(M, S, l, l);
    error_ellipse(S1, M1, <span class="string">'style'</span>,<span class="string">'b'</span>); <span class="comment">% inner pendulum</span>
    error_ellipse(S2, M2, <span class="string">'style'</span>,<span class="string">'r'</span>); <span class="comment">% outer pendulum</sp