<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Hermes,<br>
      <br>
      Le 17/08/2017 à 10:31, Hermes a écrit :<br>
    </div>
    <blockquote cite="mid:1502958696069-4036889.post@n3.nabble.com"
      type="cite">
      <pre wrap="">Hi Samuel,
Good morning, please guide me how to update scilab so I can use the update
function: vectorfind.

I have writw access to Scilab installation directory
Gracias</pre>
    </blockquote>
    <br>
    There are several ways to include it in Scilab. All ways require
    first to download vectorfind.sci:<br>
    <ul>
      <li>Go here: <a class="moz-txt-link-freetext" href="https://codereview.scilab.org/#/c/19055/">https://codereview.scilab.org/#/c/19055/</a></li>
      <li>Click on the vectorfind.sci line</li>
      <li>On the right green panel, click on the download icon ending
        the list of <i>Patch Set</i>, at the (not very) top of the
        panel. Unzip and save the .sci as <i>vectorfind.sci</i>
        somewhere on your disk.</li>
    </ul>
    <p>Then, if you just want to test vectorfind(), you must just do:</p>
    <p><tt>--> exec("path/to/vectorfind.sci",-1);</tt></p>
    <p>This will redefine it. But any<tt> clear</tt> instruction can
      remove it (and automatically restore the default version).<br>
      You can do that in your personal startup file:<br>
      <tt>--> edit SCIHOME/scilab.ini</tt><br>
      <tt>--> // Then add the exec(..) instruction, providing an
        absolute path, and save.</tt><tt><br>
      </tt><tt>--> // You will have then the new vectorfind for each
        forthcoming Scilab session,<br>
        --> // but still proned to erasing with "clear".<br>
        --> // You may also use</tt></p>
    <p><tt>--> getd("path/to/vectorfind/dir")<br>
      </tt></p>
    <p><tt>--> // instead of the exec() instruction. See help getd()<br>
      </tt></p>
    <p>If you wish to have it protected against "<tt>clear</tt>", you
      must <br>
    </p>
    <ul>
      <li>either include it in an existing library of macros, and
        recompile the library with genlib(..)<br>
        (this requires to be scilab admin only if the library is in the
        Scilab installation tree)<br>
        <br>
      </li>
      <li>or build its own library (named <tt>vectorfindlib</tt>), with
        <tt>genlib(),<br>
        </tt>and load it in your startup file, including a <tt><br>
          vectorfindlib = lib(path/to/vectorfind/directory);</tt> <br>
        instruction in your startup (as done here-above). <br>
        Then, it will replace the default vectorfind() function (unless
        you write explicitly <tt>elementary_functionslib.vectorfind(...)</tt>
        to address and use it).</li>
    </ul>
    <p>HTH<br>
      Samuel<br>
    </p>
  </body>
</html>