How to convert existing .fig files to .jpg on matlab
<p>I have a list of <code>.fig</code> files in a directory. </p>

<p>How do I write a simple matlab function that converts all the <code>.fig</code> files to <code>.jpg</code> files automatically?</p>