[Scilab-users] uicontrol & wiki

paul.carrico at free.fr paul.carrico at free.fr
Tue Dec 20 22:19:17 CET 2016


hi Samuel .. 

I think there's a misunderstanding in my questioning... I'm wondering
why this code works (under Scilab 5.5.2 at least) i.e. why I can plot
several points 

Paul 

Le 2016-12-20 22:10, Samuel Gougeon a écrit : 

> Hello Paul,
> 
> Le 20/12/2016 21:45, paul.carrico at free.fr a écrit :
> 
>> ###############################################"
>> 
>> mode(0)
>> 
>> f = scf(0);
>> e = uicontrol(f, "style", "edit", ...
>> "position", [0 0 100 20]);
>> t = uicontrol(f, "style", "text", ...
>> "position", [200 0 100 20], ...
>> "string", "...");
>> b = uicontrol(f, "style", "pushbutton", ...
>> "string", "$x^2$",...
>> "position", [100 0 100 20], ...
>> "callback", "x = evstr(e.string);...
>> y = x^2;...
>> t.string = string(y);...
>> plot2d(x, y, style = -1);");
> I get
> --> b = uicontrol(f, "style", "pushbutton", ...
>> "string", "$x^2$",...
>> "position", [100 0 100 20], ...
>> "callback", "x = evstr(e.string);...
> "callback", "x = evstr(e.string);...
> ^^
> Error: Unexpected end of file in a string.
> 
> You can't break a string in this way, but with 
> "my string and "+..
> "my text"
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161220/0bb87561/attachment.htm>


More information about the users mailing list