title: how to call .exe file (made from standalone Simulink model) in .m file?
body: <p>When I use</p>
  
  <pre><code>!mdlname -p file.mat 
  </code></pre>
  
  <p>in command window of Matlab I have no errors, but when I use the command in .m file I get error that says that mat file can not be located. I tried to put full path name for file.mat like this</p>
  
  <p>!mdlname -p c:\path..\file.mat</p>
  
  <p>but I still get error saying mat file can not be found (error reading parameter data from mat-file)</p>
  
  <p>I tried using function <code>system</code> in m file and it works but I can't force function <code>system</code> to use file.mat like I can with <code>-p</code>.</p>