fill out matrix

I have 4 by 4 matrix (just in case) and I try to make the other matrix which is the 16 by 16(the same number of element in matrix 4 by 4)

I want to fill the second matrix with numbers which are exactly depend on position of each element on the first one,for example for all corner elements it is -1 and for all edge elements it is -3 and for other elements inside the matrix it is -6.however,I can not link these two matrices to each other.again I fill the second matrix by some numbers that depend on the position of elements on the first one.these numbers must be enter in the diagonal of second matrix.

thank you in advance for your answers
Topic archived. No new replies allowed.