JEFAS_toysig_03.png" alt=""> <h2 id="5">Stopping criterion</h2><pre class="codeinput">Nit = size(evol_crit,1);
figure;
semilogy(evol_crit,<span class="string">'linewidth'</span>,2);
hold <span class="string">on</span>; semilogy(1:Nit,0.001*ones(Nit,1),<span class="string">'k--'</span>,<span class="string">'linewidth'</span>,2); <span class="comment">% threshold</span>
text(1.5,1.5e-3,<span class="string">'\fontsize{30}T = 0.1 %'</span>);
legend(<span class="string">'Time warping'</span>,<span class="string"