Is there a command in MATLAB which allows saving a figure in FIG or JPEG or both formats automatically?
try plot(var); saveFigure('title'); it will save as a jpeg automatically