title: How do I stop MATLAB from displaying the entire contents of a .m file when it runs?
body: <p>I have a small .m file which I am running in MATLAB R2010b by pressing <kbd>F5</kbd> in the Editor. Here's the file:</p>
  
  <pre><code>clear all, close all, clc;
  %why are you printing !?
  a = 1
  c = eye(5);
  </code></pre>
  
  <p>I would expect this code to display the following when I run it:</p>
  
  <pre><code>a =
  
       1
  </code></pre>
  
  <p>But instead it displays this:</p>
  
  <pre><code>%why are you printing !?
  a = 1
  
  a =
  
       1
  
  c = eye(5);
  </code></pre>
  
  <p>The same behavior happens if I call the file from the console. I can't find anything on the internet or in the console settings in MATLAB to change this. I have used many different versions of MATLAB and this has never happened before.</p>