imageNames = {'elephant.jpg','cameraman.tif','peppers.png','saturn.png',… 'pears.png','stapleRemover.jpg','football.jpg','mandi.tif',… 'kids.tif','liftingbody.png','office_5.jpg','gantrycrane.png',… 'moon.tif','circuit.tif','tape.png','coins.png'};
i want to change as imageNames = ('D:\work\Databse');
% Initialize structure for images and associated information numImages = numel(imageNames); emptyEntry = struct('image',[],'thumbnail',[]); imageCollection = repmat(emptyEntry,[1 numImages]); thumbnailSize = 400;
Best Answer