title: How to save a figure in MATLAB from the command line?
body: <p>Is there a command in MATLAB which allows saving a figure in <a href="http://www.mathworks.se/help/techdoc/creating_plots/f9-34066.html">FIG</a> or <a href="http://en.wikipedia.org/wiki/JPEG">JPEG</a> or both formats automatically?</p>