<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">hi Samuel ..</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">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</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Paul</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Le 2016-12-20 22:10, Samuel Gougeon a écrit :
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hello Paul,<br /> <br /> Le 20/12/2016 21:45, <a href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> a écrit :<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">###############################################"<br /> <br /> mode(0)<br /> <br /> f = scf(0);<br /> e = uicontrol(f, "style", "edit", ...<br /> "position", [0 0 100 20]);<br /> t = uicontrol(f, "style", "text", ...<br /> "position", [200 0 100 20], ...<br /> "string", "...");<br /> b = uicontrol(f, "style", "pushbutton", ...<br /> "string", "$x^2$",...<br /> "position", [100 0 100 20], ...<br /> "callback", "x = evstr(e.string);...<br /> y = x^2;...<br /> t.string = string(y);...<br /> plot2d(x, y, style = -1);");</blockquote>
 I get<br /> --> b = uicontrol(f, "style", "pushbutton", ...<br />   > "string", "$x^2$",...<br />   > "position", [100 0 100 20], ...<br />   > "callback", "x = evstr(e.string);...<br /> "callback", "x = evstr(e.string);...<br />                                    ^^<br /> Error: Unexpected end of file in a string.<br /> <br /> You can't break a string in this way, but with <br /> "my string and "+..<br /> "my text"<br /> _______________________________________________<br /> users mailing list<br /> <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br /> <a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" rel="noreferrer">http://lists.scilab.org/mailman/listinfo/users</a></blockquote>
</div>
</body></html>