https://au.mathworks.com/help/images/ref/imshowpair.html
imshowpair - Compare differences between images - MATLAB
This MATLAB function creates a composite RGB image showing A and B overlaid in different color bands.
differences betweencompareimagesmatlab