title: How do I hide "MATLAB Command Window" when I run an m-file from command line?
body: <p>I am running MATLAB with a command line string like this:</p>
  
  <p><code>C:\&lt;a long path here&gt;\matlab.exe -nodisplay -nosplash -nodesktop -r "run('C:\&lt;a long path here&gt;\mfile.m');"</code></p>
  
  <p>The m-file contains a <code>plot()</code> function to plot a simple curve on the x-y plane.</p>
  
  <p>The m-file successfully runs and draws the plotting with the command line string I specified above. However, every time I run this command, a window named "MATLAB Command Window" appears along with the plotting.</p>
  
  <p>How do I make this "MATLAB Command Window" NOT appear, so that only the plotting will be visible.</p>
  
  <p>The "MATLAB Command Window" looks like below:
  <img src="https://i.stack.imgur.com/GKSxj.png" alt="enter image description here"></p>