title: Matlab gui files in a package?
body: <p>I am trying to put some <code>.fig</code> and their corresponding <code>.m</code> files in package.</p>
  
  <p>I have:</p>
  
  <pre><code> +ui/mainWindow.fig
   +ui/mainWindow.m
  </code></pre>
  
  <p>But when I try to run <code>mainWindow.fig</code> Matlab prints an error from GUIDE:</p>
  
  <pre><code>  Error using feval
    Undefined function or variable mainWindow
  </code></pre>
  
  <p>The funny thing is that if i call with its fully qualified name:</p>
  
  <pre><code> ui.mainWindow
  </code></pre>
  
  <p>the window appears normally (but all callbacks don't work anyway).</p>
  
  <p>I have tried to <code>import ui.*</code>  before running it.</p>
  
  <p>Please note that I want to do this as sort of <code>namespace</code>. I don't want to have my entire application in the global scope of Matlab. </p>