This function is a modification of SAVE2PDF by Gabe Hoffmann.
It saves the current (or specified handle's) figure to the given filename (if not given, it displays a gui to introduce it). If the image extension is not valid or 'unknown' it also displays a menu with valid ones.
It's as easy as SAVEAS but with extra inputs (all optionals).
For example, to save the current figure to (defaults) PNG and 150x150 pixels use
and that's it. Or to 300x300 pixels in JPG:
Or as 'fig':
It accepts multiple inputs.
(Bugs reports ans suggestions will be very appreciated)