5.67 Adding only to diagonal of a matrix

Use Map with filter

A:=< 1,2,3;4,5,6;7,8,9>; 
LinearAlgebra:-Map[(i,j)->evalb(i=j)](x->x+1,A);