MATLAB: Can i obtain this format

formatmatrix manipulation

i want to get this matrix, can anyone help me ?
pi 0 0 1
0 pi 1 0
0 1 pi 0
1 0 0 pi

Best Answer

eye(4) * pi + fliplr(eye(4))
would be one easy way.