Lets say that I have some matrix A,with values:

[1 0 0;

0 0 0;

0 0 0;];

How do I mathematically alter the matrix to change from its current for to (s=0 is the initial iteration) :

[1 1 1;

1 1 1;

1 1 1;];

s=1

[1 2 2;

2 2 2;

2 2 2;];

s=2

[1 2 3;

2 2 3;

3 3 3;];

s=3

My first thought: I can think of any point on the matrix as the vertex of some inverted pyramid ( abs(x-i) + abs(y-j)), and place the pyramid on top of that point, and pull it down. At each step down, the elements of matrix A that grow become farther and farther apart. But apparently, I am wrong. Any tips? Once again, you guys rock.