title: Calling (cpp) "App.exe" From Matlab using "System" command
body: <p>I'm trying to call a "App.exe" file (written in cpp) from matlab, that takes as an input a name of a video (string)</p>
  
  <p>I want to use the Function "System" that Execute operating system command and return result to Matlab.</p>
  
  <p>I wrote the following in Matlab:</p>
  
  <pre><code> system ('App.exe &lt;'  VideoName);
  </code></pre>
  
  <p>and the following in Cpp:</p>
  
  <pre><code> // to get the name of the video (the input) from the command.
   std::string str;
   getline(cin, str);
   const char * name = str.c_str();
  </code></pre>
  
  <p>But its not working.
  So my question is: How do we call a "App.exe" from matlab (or even cmd) with input.
  what should I do to get this work?</p>