title: MATLAB: Change font size of command window
body: <p>I would like to temporarily change the font size of the text in the command window of MATLAB. I am running an experiment in which I am standing at the other side of the lab, and need to occasionally read a number from the screen. I don't want all the MATLAB output to be jumbo size forever - just this one variable when it occasionally comes up. I expect there must be some code that increases font size? I know I can adjust for example font colour using the following code:</p>
  
  <pre><code>com.mathworks.services.Prefs.setColorPref('ColorsText',java.awt.Color.red);
  com.mathworks.services.ColorPrefs.notifyColorListeners('ColorsText');
  </code></pre>
  
  <p>(The above changes the text in the command window to red). There must be similar code to set font size?</p>
  
  <p>The ideal solution would be a parameter to add to the fprintf command, such that only the one bit of output is larger. However, I would accept a solution in which the entire output of the screen is made larger temporarily...</p>
  
  <p>Any help appreciated.</p>