All pastes #487298 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-14 11:40 UTC
rendered paste body
function diag = domdiag(mat)
[f,c]=size(mat);
diag=1;
for i=1:f
    sum=0;
   for j=1:c
       sum= sum+ abs(mat(i,j))-abs(mat(i,j));
       if(abs(mat(i,j))<=sum)
           diag=0;
         
           return 
       end
    end
    
end
if (diag==1)
    
    return
end