I want to design a square symmetric toeplitz matriz with diagagonal elements zero and lower triangle elements should be negative
Is there any simple command or any simple coding technique to obtain this without using any loops.
The sample matrix is shown below: N*N is the size of the matrix decided by the user
0 1 2 3 – – – (N-1)
-1 0 1 2 – – – (N-2)
-2 -1 0 1 – – – (N-3)
-3 -2 -1 0 – – – (N-4)
–
–
-(N-1) -(N-2) -(N-3) -(N-4) – – – 0
Best Answer