title: automatically add path in a MATLAB script
body: <p>I have several MATLAB scripts to share with my colleagues. I have put these scripts under a specified directory, e.g., /home/sharefiles</p>
  
  <p>Under the MATLAB command prompt, the users can use these scripts by typing </p>
  
  <pre><code>addpath  /home/sharefiles
  </code></pre>
  
  <p>Is there a way to automatically add this path in my matlab script, and save users the efforts of invoking <code>addpath  /home/sharefiles</code>  each time.</p>