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

        <span class="comment">%------------------------------------------------------------------</span>
        <span class="keyword">function</span> printFinishedStatus(~,drv,status)
            fprintf(<span class="string">'\n\nAnalysis finished:\n'</span>);
            fprintf(<span class="string">'%s\n'</span>,datestr(now));
            <span class="keyword">if</span> (status == 1)
                time            = seconds(toc