combine the 2 binary images

I have 2 images that are the binary same size, M.jpg and N.jpg. I want to combine the 2 images into Z.jpg as shown. How do I write programs with matlab? Thanks.
aree.supha@gmail.com
images1.bmp

 Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 1 Aug 2019
Edited: KALYAN ACHARJYA on 1 Aug 2019
Z=M & N; %Preferred
or
Z=and(M,N);

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!