<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Le 04/10/2011 00:14, Samuel Gougeon a écrit :
<blockquote cite="mid:4E8A33BF.3010704@free.fr" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
Hi Calixte,<br>
  <br>
Le 03/10/2011 17:10, Calixte Denizet a écrit :
  <blockquote cite="mid:4E89D067.2020605@scilab.org" type="cite">
    <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
Hi Séverine,<br>
    <br>
The string you can pass to scilab has a limited size.<br>
    <br>
A workaround:<br>
i) put your big line in a file: expression.txt<br>
ii) get your line with : l=mgetl('expression.txt');<br>
iii) J(i,k)=evstr(l);<br>
  </blockquote>
Does evstr() really work in this case?? Hasn't it the same limitation,
if l is a unique huge line?<br>
i did not have a try....<br>
help evstr states: "Each element of the matrix must define a valid
Scilab expression"<br>
If the maximal length of the command is a criterium for validity,
evstr() may neither work<br>
for too long inputs. To be confirm, and may be documented in the
evstr() help page.<br>
</blockquote>
With execstr(), it works! The statement L="iiiiiiiii a very
2800-chars-long string ....iiiii"<br>
stored into a file read with mgetl() and executed with execstr() is
actually well done. <br>
Interesting trick!<br>
<br>
[By the way, the case from Séverine has an assignment and can be
processed only with execstr().<br>
Neither eval() nor evstr() can process assignments].<br>
<br>
Samuel<br>
<br>
</body>
</html>