title: How to run matlab on the background?
body: <p>I'm currently using an external editor of Matlab .m files, with a custom build system that calls Matlab from the command line to run the Matlab script (with the <code>-nosplash</code> and <code>-nodesktop</code>). However this creates two problems:</p>
  
  <p>1) Matlab closes right after running the script: any windows or plots I call in the script are closed right after running the script, which obviously happens in a matter of seconds.</p>
  
  <p>2) There is a slight delay every time I run the script because Matlab is effectively being started from scratch.</p>
  
  <p>So I was wondering if would be possible to have Matlab running in the background, and just running the scripts whenever I want?</p>
  
  <p>I'm running Linux 64bits, Matlab 2013a, and Sublime Text 3.</p>
  
  <p>EDIT: I've testing the setup with a basic script:</p>
  
  <pre><code>a=5;
  figure
  plot(a);
  </code></pre>
  
  <p>EDIT2: I'm calling Matlab through a Sublime Text build system that runs:</p>
  
  <pre><code>matlab -nosplash -nodesktop &lt;[script].m
  </code></pre>