www.pudn.com > zishiyingjiami.rar > HUD.m, change:2011-12-09,size:238b


function A1=HUD(A) 
[m,n]=size(A); 
A=double(A); 
A1=zeros(m,n); 
%从上到下行加密 
for i=1:m 
    for j=1:n 
        if i>1 
           A1(i,j)=bitxor(A(i,j),A1(i-1,j)); 
        else 
           A1(i,j)=A(i,j); 
        end 
    end 
end