[MATLAB] Adding parameter to specify file type of saved figure.
[MATLAB] Fixing save to fig for progdepth.