title: Run a MATLAB script from python + pass args
body: <p>I am looking to from MATLAB from Python. I need to use the MATLAB Image Acquisition Toolbox to acquire few images from a video camera.</p>
  
  <p>MATLAB seems to be a nice solution because the Image Acquisition is easy and i have to do some image processing afterwards. I have searched for a long time but I still haven't found anything working to do this from Python.</p>
  
  <p>Here are some of my tries:</p>
  
  <hr>
  
  <p><strong>mlabwrap 1.1 -  run a MATLAB-script:</strong></p>
  
  <p>A MATLAB script like:</p>
  
  <pre><code>vid = videoinput('testadaptor');
  img = getsnapshot(vid);
  imwrite(img,'./image.png','png');
  </code></pre>
  
  <p>You can run this script by using:</p>
  
  <pre><code>mlab.run('script.m')
  </code></pre>
  
  <p>But, where to pass some arguments(directory, image description, etc)?
  I haven't found anything because of mlabwraps poor documentary.
  I've used the mlab.lookfor('theme of interest') function without success</p>
  
  <hr>
  
  <p><strong>mlabwrap 1.1 -  Image acqusisition by using mlab functions:</strong></p>
  
  <p>At first sight no possibility to read out an "video input object", no functions such as:</p>
  
  <pre><code>image = getsnapshot(video input object)
  imwrite(image,'directiory\image.png','png')
  </code></pre>
  
  <hr>
  
  <p><strong>python-matlab-bridge</strong></p>
  
  <p><a href="https://github.com/jaderberg/python-matlab-bridge" rel="nofollow noreferrer">https://github.com/jaderberg/python-matlab-bridge</a></p>
  
  <p>I've got Windows7 64 Bit as OS. They say, its only working on unix.</p>
  
  <hr>
  
  <p><strong>Nipype</strong></p>
  
  <p><a href="http://nipy.sourceforge.net/nipype/api/generated/nipype.interfaces.matlab.html" rel="nofollow noreferrer">http://nipy.sourceforge.net/nipype/api/generated/nipype.interfaces.matlab.html</a></p>
  
  <p>Seems to be very new. I havent tried to install it. It seems to be fitting to my problem but not to windows, i guess.</p>
  
  <hr>
  
  <p><strong>PyMAT</strong></p>
  
  <p>No python 2.7 support</p>
  
  <hr>
  
  <p><strong>So is there anyone who can help me?</strong></p>