How to construct this n × n matrix using “diag” function in matlab?

56 Views Asked by At

For this questionenter image description here

I know something the usage about “diag” function, when n increases, does the matrix looks like a diagonal matrix that other pivots fill with zeros? Does this matrix can be constructed by simply calling the "diag" function?