MATLAB: How can i make matrix 1 1/2 1/3 1/4 … 1/n

matrix

a = 1 1/2 1/3 …. 1/n
1/2 1/3 1/4 …
1/3 1/4 1/5 …..
..
..
1/n 1/n+1 1/n+2 …
how can i make this matrix??

Best Answer

This is built in to Matlab. Try help hilb in the workspace.