MATLAB: How to read images from one directory into variables using loop

imagesvariables

I am new in Matlab. I want to read all images from a directory and store each of them into separate variables. For example, if there are 225 images then i should have 225 variables, each of them containing pixel values of corresponding image, no matter same name as image or different.

Best Answer

  • See the FAQ for explanation and code samples: The FAQ