diff --git a/DynamicDrawNet.m b/DynamicDrawNet.m index b60a811..3857f90 100644 --- a/DynamicDrawNet.m +++ b/DynamicDrawNet.m @@ -88,9 +88,9 @@ % Time loop -difep = 100; lastdis = 1; +difep = 100; lastdis = 1; loop = 1; -while difep > 1e-5*N +while difep > 1e-2 loop = loop + 1; eploop = loop; @@ -142,10 +142,9 @@ end end - %Distemp Dis(loop) = Distemp; - %difep = abs(Distemp - lastdis)/N^2; - difep = abs(Distemp - lastdis)/Distemp; + difep = abs(Distemp - lastdis)/e; + %difep = abs(Distemp - lastdis)/Distemp; lastdis = Distemp; %keyboard @@ -185,8 +184,8 @@ end % end time loop -% figure(10) -% plot(Dis) +figure(10) +semilogy(Dis) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%