Avoid linspace warning about non-integer third input argument. 51/8451/1
Vincent COUVERT [Tue, 31 Jul 2012 14:40:20 +0000 (16:40 +0200)]
Change-Id: Ib18c42e80862b40c30a62d180cec2bfd17ab66db

scilab/modules/graphics/demos/cmplxfunc/demo_custom.dem.sce

index 1dc8229..d7fee88 100644 (file)
@@ -736,9 +736,9 @@ function [xr,yr,zr,xi,yi,zi] = CmplxFacets(R,e,TypeDomain,TypeCut,n,StrFunc)
     if TypeDomain == "Square" then
         if TypeCut == "Ox" then
             x1 = linspace(-R, R, n);
-            y1 = linspace( e, R, n/2);
+            y1 = linspace( e, R, int(n/2));
         else  // for TypeCut = "Oy" ...
-            x1 = linspace( e, R, n/2);
+            x1 = linspace( e, R, int(n/2));
             y1 = linspace(-R, R, n);
         end
         X1 = ones(y1')*x1 ; Y1 = y1'*ones(x1);