I would like to calculate a matrix that is the result of distance of each coordinate to boundaries(up,down,right and left). Only the position matters, the value of each coordina