MATLAB: Open a folder of images thru code

image

i wanted to do few calculations for all images in a folder and save all the result in a matfile…
when i do only the last result is being saved in the matfile can tell me how to open a folder of images using matlab code and do the calculations and save each images calculation in the same matfile….
i have got the calculation part… some please help me in the remaining part….

Best Answer

Together with using the -append flag when you save()
Make sure you use a different variable name each time you save, or else the new value will overwrite the old value.