plot3d2: fixed an operation matrix+[] 53/18153/1
Pierre-Aime Agnel [Wed, 11 May 2016 10:30:51 +0000 (12:30 +0200)]
Change-Id: I422f502519112d569713d361fe1c6d20d6370f98

scilab/modules/graphics/macros/plot3d2.sci

index 5db6763..cd08675 100644 (file)
@@ -64,5 +64,9 @@ function plot3d2(x,y,z,vect,theta,alpha,leg,flag,ebox)
         error(msprintf(gettext("%s: Wrong value for input argument: ''%s'', ''%s'', ''%s'', ''%s'' or ''%s'' expected.\n"),"plot3d2","theta","alpha","leg","flag","ebox"));
     end
 
-    execstr("plot3d(xx,yy,zz,"+strcat(opts,",")+")")
+    if isempty(opts)
+        plot3d(xx, yy, zz);
+    else
+        execstr("plot3d(xx,yy,zz,"+strcat(opts,",")+")")
+    end
 endfunction