<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Le 14/12/11 15:39, Rémi Chaussenot a écrit :
    <blockquote
      cite="mid:646F8BAF-7F90-4E74-8C81-95B015FC9DB9@u-psud.fr"
      type="cite">Hi Everybody,
      <div><br>
      </div>
      <div><br>
      </div>
      <div>A collegue makes me a function on MatLab, but i use SciLab,
        and its not working at all.</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>That's the function : </div>
      <div><br>
      </div>
      <div>
        <div>function newTab = countAlone(filename, sheet)</div>
        <div><span class="Apple-tab-span" style="white-space:pre"> </span>tab
          = xlsread([filename '.xlsx'], sheet);</div>
        <div><span class="Apple-tab-span" style="white-space:pre"> </span>[count
          values] = hist(tab, unique(tab));</div>
        <div><span class="Apple-tab-span" style="white-space:pre"> </span>newTab(:,
          1) = values;</div>
        <div><span class="Apple-tab-span" style="white-space:pre"> </span>newTab(:,
          2) = count;</div>
        <div><span class="Apple-tab-span" style="white-space:pre"> </span>xlswrite([filename
          '_new.xlsx'], newTab, sheet);</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>I know that i must add a "endfunction" at the end, and use
        xls_read instead of xlsread.</div>
      <div>But, don't change anything, same bugs.</div>
      <div><br>
      </div>
      <div>Could you help me please ?</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Thanks a lot,</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
        <div>
          <div>
            <div>-- </div>
            <div>Rémi CHAUSSENOT</div>
            <div>PhD</div>
            <div><br>
            </div>
            <div>Centre de Neurosciences Paris-Sud (CNPS)</div>
            <div><a moz-do-not-send="true"
                href="mailto:remi.chaussenot@u-psud.fr">remi.chaussenot@u-psud.fr</a> </div>
          </div>
        </div>
        <br>
      </div>
    </blockquote>
    Hi Rémi,<br>
    <br>
    Can you send your modified function, a test xls file and the error
    reported by scilab?<br>
    This would help us helping you ! ;-)<br>
    Also, I am not sure xls_read handles the last ".xlsX" Excell file
    format.<br>
    <br>
    ANtoine<br>
  </body>
</html>