function printcolorjpgs % this will print all the color jpg files in a directory k = dir('*.jpg'); k2 = {k(:).name}; for i=1:length(k2) im = imread(k2{i},'JPEG'); image(im); title(k2{i}); print -dpsc end