From 5017e5acb2fc5df971fa0a20181c8396ec8f2e1c Mon Sep 17 00:00:00 2001 From: David Nolte Date: Thu, 4 Feb 2021 08:14:30 -0500 Subject: [PATCH] Update DynamicDrawNet.m --- DynamicDrawNet.m | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%