title: How to call a function placed in another directory in Matlab?
body: <p>I have a large project coded in <code>MATLAB</code>, with <code>15-18 scripts</code>. It is becoming very challenging to understand the whole code. I was thinking that if I can put some scripts in another folder, it will become very straightforward to understand and maintain the code. Is it possible to do that?</p>
  
  <p>Consider the below directory structure:</p>
  
  <p><a href="https://i.stack.imgur.com/VitYp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VitYp.png" alt="enter image description here"></a></p>
  
  <p>How can I call a function from <code>main.m</code> that is placed in <code>func.m</code> in <code>Folder 1</code>?</p>