<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Claus,<br>
      Could you please post a true extract of your file, as a file <i>in
        attachement</i>, after that you checked than the issue occurs
      also with this extract file?<br>
      It will be easier to test the issue, and it will lead to more
      reliable tests than copying/pasting a part of your message in a
      file.<br>
      Regards<br>
      SG<br>
      <br>
      Le 10/12/2016 11:22, Claus Futtrup a écrit :<br>
    </div>
    <blockquote
      cite="mid:4be2ccab-096c-6f89-6b50-94c3e6cbe5c6@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <p>Hi</p>
      <p>I'm trying to read a datafile with csvRead, it might be the
        wrong function. Please help. The file itself looks like this
        (only showing select lines - the file contains 391 lines):<br>
      </p>
      <p>****************************************************<br>
        * <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="FILE:C:%5CUsers%5Cclaus%5Cexample.zma">FILE:C:\Users\claus\example.zma</a><br>
        * INFO: Arb1<br>
        * Data: Impedance (ohms), Phase (degrees)<br>
        ****************************************************<br>
           10.000    +8.8488   +40.1693<br>
           10.199    +8.9648   +40.7994<br>
           11.949   +10.0946   +46.1555<br>
           12.188   +10.2827   +46.7923<br>
          141.879    +6.7485   -10.8804<br>
          144.715    +6.7473   -10.3382<br>
          147.608    +6.7438    -9.8380<br>
          150.559    +6.7377    -9.3570<br>
          389.346    +7.2282    +9.7230<br>
          397.129    +7.2456   +10.0717<br>
          987.112    +8.5967   +23.3368<br>
         1006.846    +8.6355   +23.7056<br>
         9807.309   +26.8760   +57.2720<br>
        10003.368   +27.2519   +57.4330<br>
        20000.000   +44.3153   +62.1741<br>
      </p>
      <p>csvRead complains because the column width is changing. I
        execute:<span style="color:rgb(0,0,0);"><br>
        </span></p>
      <p><span style="color:rgb(0,0,0);">localdir</span> <span
          style="color:rgb(92,92,92);">=</span> <span
          style="color:rgb(188,143,143);">"</span><span
          style="color:rgb(188,143,143);">C:\Users\claus\";</span><br>
        <span style="color:rgb(188,143,143);"></span><span
          style="color:rgb(0,0,0);">filename</span> <span
          style="color:rgb(92,92,92);">=</span> <span
          style="color:rgb(174,92,176);text-decoration:underline;">fullfile</span><span
          style="color:rgb(74,85,219);">(</span><span
          style="color:rgb(0,0,0);">localdir</span><span
          style="color:rgb(0,0,0);">,</span><span
          style="color:rgb(188,143,143);">"</span><span
          style="color:rgb(188,143,143);">example.zma</span><span
          style="color:rgb(188,143,143);">"</span><span
          style="color:rgb(74,85,219);">)</span><span
          style="color:rgb(0,0,0);">;</span><br>
        <span style="color:rgb(0,0,0);"></span><span
          style="color:rgb(0,0,0);">Mread</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);">filename</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);">double</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);">5</span><span
          style="color:rgb(74,85,219);">)</span><span
          style="color:rgb(0,0,0);">;</span><br>
      </p>
      <p>This is the error which csvRead gives (line 10 == line 3 in
        above shortened dataset):</p>
      <p>>Warning: Inconsistency found in the columns. At line 10,
        found 12 columns while the previous had 13.<br>
        >                                                     
        !--error 999 <br>
        >csvRead: can not read file C:\Users\claus\example.zma: Error
        in the column structure<br>
      </p>
      <p>What is the recommended way to read the ZMA file?</p>
      <p>P.S. ZMA = Impedance with 1) Frequency, 2) Magnitude and 3)
        Phase data.<br>
      </p>
      <p>/Claus<br>
      </p>
      <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>