function h=greater(A,B) [a,b]=size(A); [c,d]=size(B); if a==c & b==d C=A>B; h=sum(sum(C)); endif endfunction