Why a cycle?
You can easily sum the absolute values in a given line.
sum(abs(A),2)
Can you compare this to the absolute diagonal elements in each row?
abs(diag(A)) >= sum(abs(A),2)
, , . , .
(2*abs(diag(A))) >= sum(abs(A),2)
, . . , .
all((2*abs(diag(A))) >= sum(abs(A),2))
user85109