title: Running Matlab M-function from Python
body: <p>I want to run my Matlab function <code>(test.m)</code> from Python. I converted the function to an exe file <code>test.exe</code> using <code>mcc -m</code> command of Matlab; and I can run it <code>test.exe</code> from command prompt of windows. </p>
  
  <p>On the other side, when I run exe files using os.system and subprocess.call by Python, it works well:</p>
  
  <p><code>subprocess.call('C:\Program Files\DVD Maker\DVDMaker.exe',shell=True)</code></p>
  
  <p>(My DVDMaker opens)</p>
  
  <p>But when I run<br>
  <code>subprocess.call('C:\...\test.exe',shell=True)</code></p>
  
  <p>I receive this:
  <code>The filename, directory name or volume label syntax is incorrect.</code></p>