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
I believe you want the imread function, not load. See the documentation.
imread