function printImage(fname, DIR_PARAM) print('-djpeg', fullfile(DIR_PARAM, [fname '.jpg']));