MATLAB: How to compare images in a group

image comparisonImage Processing Toolbox

i have 10 images in a group. i have to compare 1st image with 2nd using correlation. then i have to compare 2nd image with 3rd image. then i have to compare 3rd image with 4th . similarly it goes on till 10. how to achieve this?

Best Answer

for k1 = 1 : 10
for k2 = k1 : 10
% Do the correlation
end
end