title: How to call MATLAB from command-line and print to stdout before exiting
body: <p>I'm trying to run MATLAB scripts from command-line and am having problems getting MATLAB to return results to stdout.</p>
  
  <p>When running the following command, MATLAB prints the license banner and exits without printing the message.</p>
  
  <p><code>matlab -nodisplay -nojvm -r "fprintf(1, 'value: %f\n', 2.0); quit;"</code></p>
  
  <p>*note: I am currently running Version 7.10.0.499 (R2010a) 64-bit (maci64)</p>