title: Executing a file or calling a function whose file is placed in another folder with MATLAB?
body: <p>Tried <a href="http://www.google.co.in/search?q=matlab%20include%20file%20from%20another%20folder&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla%3aen-US%3aofficial&amp;client=firefox-a">Googling</a>, but couldn't find anything.<br>
  I have a few files and folders in my current MATLAB folder.<br>
  One of those folders is called 'Map' and it has a 'map1.m' file which I want to call from my code in the current MATLAB folder.<br>
  In my code, I can't call it like this:  </p>
  
  <pre><code>/Map/map1;
  </code></pre>
  
  <p>but I can do so like this:</p>
  
  <pre><code>cd Map;
  map1;
  cd ..;
  </code></pre>
  
  <p>Somehow the above method seems incorrect. Is there a more elegant way to do it?</p>