title: How can I pass command line arguments to a standalone MATLAB executable running on Linux/Unix?
body: <p>How can I pass command line arguments to a standalone MATLAB executable 
  running on Linux/UNIX?</p>
  
  <p>I need to compile my MATLAB script as a standalone file that can be run on a machine without MATLAB present. It needs to be able to work in a way similar to C's <code>argv[]</code>, where you do the following:</p>
  
  <p>Command line:</p>
  
  <pre><code>myfile argument1.txt argument2.txt
  </code></pre>
  
  <p>where argument 1 and 2 are the input and output files.</p>
  
  <p>The exact syntax doesn't matter, but it should work like <code>argv[]</code>. What is a function that could do this?</p>
  
  <hr>
  
  <p>What I mean is that I have MATLAB on my computer, but I need to make an standalone executable that can run on Unix systems WITHOUT MATLAB on those computers (it's a cluster, that only has MATLAB on one node). I need to find a way to make the varargin function without having MATLAB installed on the computer that's running the program. If I can tell MATLAB to put the MATLAB library in each executable, that's OK, as long as it's a complete standalone package.</p>