<html><head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body><div>Hi,</div><div><br></div><div>if your data it's tabular, in another words, you can open it in Excel or Libre Office Calc like you whant to do.</div><div><br></div><div>You should be able to read in the same way with csvRead, however you need to adjust the parameters</div><div><br></div><div>Something like:</div><div><br></div><ul class="list-chapter">
    </ul><div><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default">[</span><span class="default">M</span><span class="default">, </span><span class="default">comments</span><span class="default">] = </span><span class="functionid" style="font-weight: bold;">csvRead</span><span class="default">(</span><span class="default">'myfile.txt'</span><span class="default">, </span>'   '<span class="default">, </span><span class="default">[]</span><span class="default">, </span><span class="default">[]</span><span class="default">, </span><span class="default">[]</span><span class="default">, </span><span class="default">[]</span><span class="default">, </span><span class="default">[]</span><span class="default">, </span><span class="default">5</span><span class="default">);</span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"></span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"><br></span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default">Note that ' ' need to be the same separator in your text file.</span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"><b>May be</b> it can be a TAB (the key in keyboard) or a simple space, you need try or open your file and check it.</span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"><br></span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default">And the 5 value it's to ignore the first 5 lines.</span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"><br></span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"><a href="https://help.scilab.org/docs/6.0.0/en_US/csvRead.html">https://help.scilab.org/docs/6.0.0/en_US/csvRead.html</a></span></pre><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><br></pre>Is that what you are looking for ?</div><div><br></div><div>-- Amanda Osvaldo<br><pre style="overflow-x: auto; width: 1069.22px; word-wrap: break-word; color: rgb(0, 0, 0); font-variant-ligatures: normal; orphans: 2; widows: 2;"><span class="default"><br></span></pre></div><div>On Fri, 2017-03-03 at 13:09 +0100, Jens Simon Strom wrote:</div><blockquote type="cite">
    Hi, <br>
    with<br>
    <pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><font face="Courier New, Courier, monospace">x=read(file,-1,2)</font>
</pre>
    I can read the data from a text file containing e. g. <br>
    <br>
    1  2.12       First line of text file<br>
    2.12   3.2<br>
    3 2<br>
    4  2<br>
    5 2.<br>
    6     2<br>
    7 2 <br>
                Last line empty<br>
    <br>
    What can I do to read only the numbers from a text file like<br>
    <br>
    Header 1     First line of text file<br>
    Header 2<br>
    <br>
    <br>
    1 2.12<br>
    2.12 3.2<br>
    3 2<br>
    4 2<br>
    5 2.<br>
    6 2<br>
    7 2<br>
                Last line empty              
    <br>
    <br>
    where the data start in the 5th line?<br>
    <br>
    Regards, Jens<br>
    <br>
  

<pre>_______________________________________________
users mailing list
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre></blockquote></body></html>