<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Monospaced;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";
        mso-fareast-language:FR;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>It works well with one line, but I do not figure out how to use it with a matrix without using a loop ?????<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#64AE64;mso-fareast-language:FR'>//i = [1 : nbre_elem]';</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#64AE64;mso-fareast-language:FR'>//A = zeros(nbre_elem,9);</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#64AE64;mso-fareast-language:FR'>//A(i,:) = evstr(tokens(Nodes_char(i)))' </span><span lang=EN-US style='font-size:12.0pt;font-family:Wingdings;color:#64AE64;mso-fareast-language:FR'>è</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#64AE64;mso-fareast-language:FR'> doesn’t work<o:p></o:p></span></p><p class=MsoNormal><i><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#64AE64;mso-fareast-language:FR'><o:p> </o:p></span></i></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#64AE64;mso-fareast-language:FR'>// works</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#A020F0;mso-fareast-language:FR'>for</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR'>i</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#5C5C5C;mso-fareast-language:FR'>=</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:rosybrown;mso-fareast-language:FR'>1</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#FFAA00;mso-fareast-language:FR'>:</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:rosybrown;mso-fareast-language:FR'>10</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'>    </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR'>A</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR'>(</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR'>i,</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#FFAA00;mso-fareast-language:FR'>:</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR'>)</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#5C5C5C;mso-fareast-language:FR'>=</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'> </span><u><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#AE5CB0;mso-fareast-language:FR'>evstr</span></u><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR'>(</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#32B9B9;mso-fareast-language:FR'>tokens</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR'>(</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR'>Nodes_char</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR'>(</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR'>i</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR'>)))</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:#5C5C5C;mso-fareast-language:FR'>'</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR'>;</span><span lang=EN-US style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monospaced","serif";color:#A020F0;mso-fareast-language:FR'>end</span><span style='font-size:12.0pt;font-family:"Monospaced","serif";color:windowtext;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>NB</span></u></i><span lang=EN-US style='color:#1F497D'>: I’ve some troubles with csvTextScan for example when the first character is a separator …<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR'> users [mailto:users-bounces@lists.scilab.org] <b>De la part de</b> Samuel Gougeon<br><b>Envoyé :</b> lundi 21 octobre 2013 15:21<br><b>À :</b> International users mailing list for Scilab.<br><b>Objet :</b> Re: [Scilab-users] Matrix of characters conversion<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hello,<br><br>Le 21/10/2013 14:29, Carrico, Paul a écrit :<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Dear All</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>How can I convert a matrix of characters into integers when the separator has different number of spaces ? <br><br></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>The spaces come probably  from a printf format such as :     printf(“%10d\n”,var)</span><o:p></o:p></p><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:EN-US'>I ‘m currently using <b><u>csvTextScan</u></b> and I’ve some troubles/errors  with <b><u>csvRead</u></b> …</span><o:p></o:p></pre><p class=MsoNormal><u><span lang=EN-US>Example</span></u><span lang=EN-US> :</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>! 300006     12799     24678     17504     21558    212801     24680     17508     21560 !</span><o:p></o:p></p></blockquote><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'>ligne = "</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'>300006     12799     24678     17504     21558    212801     24680     17508     21560"<br>evstr(tokens(ligne))  // yields:<br><br>-->evstr(tokens(ligne))<br> ans  = <br>    300006.  <br>    12799.   <br>    24678.   <br>    17504.   <br>    21558.   <br>    212801.  <br>    24680.   <br>    17508.   <br>    21560.   <br></span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><br>HTH<br>Samuel<o:p></o:p></span></p></div></body></html>
<pre>--------------------------------------------------------------------------------


Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.