[Scilab-users] strange behavior of function xstring
grivet
grivet at cnrs-orleans.fr
Fri Mar 15 11:18:56 CET 2013
Hello,
I have noticed the following strange behavior of function xstring.
This piece of code works fine:
clear; clf();
s = "A";
plot2d(0,0,-1,"010"," ",[-2,-2,2,2]);
xstring(0.5,0.5,s);
This one does not (simplified exemple, no useful purpose):
clear; clf();
function etiq(x,y)
s = "A";
xstring(x,y,s};
endfunction
plot2d(0,0,-1,"010"," ",[-2,-2,2,2]);
etiq(0.5,0.5);
Scilab stops with error message
xstring(x,y,s};
!--error 2
Facteur invalide.
at line 3 of function etiq called by :
What do I do wrong?
JP Grivet
More information about the users
mailing list