MATLAB: Create diagonal matrix zeros

diagMATLABmatrix manipulation

I'm trying to create a matrix like this:
I'm able to create one matrix with a=diag(1:10)
and another with b=(1:10)+(0:9)'
But I don't know how to combine them together to get A.
Thanks for your help

Best Answer

a = diag(1:10);
a(1,:) = 1:10;
a(:,1) = 1:10;