MATLAB: Writing N+1 by N+1 Matrix in MATLAB

How can i write and use the attached matrix in MATLAB for any value of N?

Best Answer

N = 3;
M = diag(2:2:2*N, -1)