Write a MATLAB code to hide the information of the part of the image.



CODE:
clear all;
close all;
clc;
b=imread('coins.png');
a=imread('cameraman.tif');
x=0;
y=0;
for n=80:156
    x=x+1;
    y=0;
    for m=178:235
        y=y+1;
        c(y,x)=b(m,n);
    end
end



d=0;
e=0;
for p=95:95+156-80
    d=d+1;
    e=0;
    for q=38:38+235-178
        e=e+1;
        a(q,p)=c(e,d);
    end
end
       imshow(a);
      
      


 


OUTPUT: