I want to write a matrix in Mathematica by programming. How can I write it?
The matrix is :
$ M= \begin{bmatrix} 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix} $
Considering $p$- Number of rows and $2n+1$- Number of columns I wrote the following program which is added. But this code is not working. I can form a matrix by matrix tool option. but it is 1000 entries or more that will a problem.

Table. – Kuba Oct 30 '18 at 08:28SparseArrayprovides a short and efficient alternative:Normal[SparseArray[{{1,3}->1},{p,2 n +1 }]]– Henrik Schumacher Oct 30 '18 at 08:36