I would like to create a matrix in which I can mark an element with a zero, and all the elements around it contain the distance to the element 0, like in the following example:
2 2 2 2 2 2 1 1 1 2 2 1 0 1 2 2 1 1 1 2 2 2 2 2 2
Best Answer