MATLAB: How to generate a .mat file from an image database,,,,

loop over files

Actually we are taking a image database of 165 images and want to create .mat file from it with variable X with size (#x#) double and Y size (1x#),double,,and we are not able to create that,,,,,please help me..,,, #-any no after generating of a .mat file
Related Question