%here is my code..what wrong i am doing?
clc;a=[1:4;5:8;9:12;13:16]b=dec2bin(a,8)c=size(b,1)d=size(b,2)text='abc'binarytext=dec2bin(text,8)e=size(binarytext,1)f=size(binarytext,2)for ii = 1:c for jj = 1:d watermark(ii,jj)=binarytext(mod(ii,e)+1,mod(jj,f)+1) endendg=size(watermark)watermarked_image=bfor ii = 1:c for jj = 1:d watermarked_image(ii,jj)=bitset(watermarked_image(ii,jj),1,1) endend
Best Answer