www.pudn.com > zishiyingjiami.rar > LUTRDJ.m, change:2011-12-08,size:368b


function A1=LUTRDJ(A) 
[m,n]=size(A); 
A1=zeros(m,n); 
%ϵ½ 
for i=1:m 
    for j=1:n 
        if i<m & j<n 
               tp1=bitxor(A(i,j),A(i+1,j)); 
               tp2=bitxor(tp1,A(i,j+1)); 
               tp3=bitxor(tp2,A(i+1,j+1)); 
               A1(i,j)=tp3; 
        else                  
               A1(i,j)=A(i,j); 
        end 
    end 
end