Optimization demos: minor fix 16/14316/2
Paul Bignier [Thu, 3 Apr 2014 09:13:49 +0000 (11:13 +0200)]
Simplified the instruction and reduced the waiting time
(I don't see a reason to wait 2 seconds).

Change-Id: If15e8528ad01814e78e6d5670cc13e3843be2559

scilab/modules/optimization/demos/datafit/demo_datafit.sci

index 4e1e018..df72218 100644 (file)
@@ -37,7 +37,7 @@ function demo_datafit()
     demo_viewCode(SCI + "/modules/optimization/demos/datafit/demo_datafit.sci");
     plot(X, Y, "+");
     l=legend(_("Experimental data"),2);
-    realtimeinit(0.1);for k=1:20,realtime(k),end
+    sleep(500);
     // solve the non linear data fitting
     [p,err] = datafit(G,Z,[3;5;10])
     // show the fitting curve