<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>The main problem I ran into with csvRead was reading files with a
      variable number of separators in each row. Then my suggested
      solution pads with 0. It could be changed to pad with NaN also. <br>
    </p>
    <p>Using strsplit in each row allows for several separators in the
      same conversion.  It may still be useful to use evstr row by row
      instead, if the number of spaces between numbers vary. <br>
    </p>
    <p>J</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2020-09-10 10:46 AM, P M wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACf7ODsEfv2O3+jYuLtm2TK1C_FaiquDmgR6yhGWQhr+Fh00aw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>I think csvRead is just fine.</div>
        <div><br>
        </div>
        <div>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(0,0,0)">data</span> <span style="color:rgb(0,0,0)">header</span><span style="color:rgb(74,85,219)">]</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">csvRead</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">fname</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)"> </span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">.</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">string</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">0</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;

</span></pre>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">As you may notice the data Matrix contains a lot of empty columns.

</span></pre>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">This is due to the many white spaces in the text file

</span></pre>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">anyways, after reading the dta in you may use evstr() to convert into doubles.


</span></pre>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">BR
</span></pre>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">Philipp
</span></pre>
          <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">
</span></pre>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Am Do., 10. Sept. 2020 um
          04:03 Uhr schrieb <<a
            href="mailto:antoine.elias@scilab-enterprises.com"
            moz-do-not-send="true">antoine.elias@scilab-enterprises.com</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello
          Daniel,<br>
          <br>
          Do you have try with "evstr" function ?<br>
          <br>
          data = evstr(mgetl("output.txt"));<br>
          <br>
          Regards,<br>
          Antoine<br>
          <br>
          _______________________________________________<br>
          users mailing list<br>
          <a href="mailto:users@lists.scilab.org" target="_blank"
            moz-do-not-send="true">users@lists.scilab.org</a><br>
          <a href="http://lists.scilab.org/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>