I have certain images in a directory and I want to load all those images to do some processing. I tried using the load function.
load
imagefiles = di
You can use the imageSet object in the Computer Vision System Toolbox. It loads image file names from a given directory, and gives you the ability to read the images sequentially. It also gives you the option to recurse into subdirectories.