<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Times New Roman, Times, serif">Thanks Amanda, that
      helps.<br>
      <br>
      In the meantime I have found an alternate way by editing the text
      file:<br>
      Move the leading text lines to the end of the data colums.<br>
      Append  a hint after the first data line that there is information
      below.<br>
      Use <br>
      <font face="Courier New, Courier, monospace">x=read(file,r,c)</font><br>
      where r and c define the row and colum number of the numerical
      data.</font> That works even for my chaotic data format wherein
    different numbers of blanks and tabs in each line  separate the
    data. <br>
    <br>
    Regards, Jens<br>
    <br>
-------------------------------------------------------------------------------------------------------------------------------------------------------<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 03.03.2017 13:42, schrieb Amanda
      Osvaldo:<br>
    </div>
    <blockquote cite="mid:1488544945.4597.4.camel@yahoo.es" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <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">
</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">
</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">
</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 moz-do-not-send="true" 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;">
</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">
</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 moz-do-not-send="true" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a moz-do-not-send="true" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
  </body>
</html>