arginPos = arginPos + 1;
else
msg = gettext("%s: Wrong size or type for input argument #%d: string expected.\n")
- error(msprintf(msg, fname, shift+1));
+ error(msprintf(msg, fname, arginPos+1));
end
end
xend();
driver("Rec")
ans =
-
- GIF
-// Then open toto.gif in a image viewer.
+ "GIF"
+// Then open toto.gif in a image viewer.
x = [0:1/fs:M*fs];
plot2d(x)
disp('OK');
-
- OK
+ "OK"
s=sin(10*x);
driver("PPM")
ans =
-
- Rec
+ "Rec"
xinit("testplot.ppm")
plot2d(x,s)
// crash here in Scilab 3.0
//
// Jacques-Deric
disp ("4.21.51A");
-
- 4.21.51A
+ "4.21.51A"
hf = scf (1);
hf.figure_name = "4.21.51A";
hf.background = 32;
e=gce();
e.color_flag // valeur 2 ok
ans =
-
- 2.
+ 2.
errorNum = execstr("e.color_flag=2", "errcatch"); //message d'erreur : bug
if (errorNum <> 0) then bugmes();quit;end;
e.cdata_mapping // valeur direct=ok
ans =
-
- direct
+ "direct"
errorNum = execstr("e.cdata_mapping=''direct''", "errcatch"); //message d'erreur : bug
if (errorNum <> 0) then bugmes();quit;end;
f3="barhomogenize";
f4="getColorIndex";
f13="Sgrayplot";
-f14="TitleLabel";
+f14="title";
//bar
msgerr11=msprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"),f1,1,6);
//TitleLabel
msgerr141=msprintf(gettext("%s: Wrong size or type for input argument #%d: string expected.\n"),f14,1);
-assert_checkerror("TitleLabel(""Scale n°3"",1)",msgerr141);
+assert_checkerror("title(1)",msgerr141);