MATLAB: How to make a 10 x 10 matrix variable with the numbers 1 to 100, in both column and row major forms

colum majorMATLABrow-major

So I know how to make a row vector of numbers 1 to 100, x=[1:100], but how do I make it so that it's organized into column major form, split into 10 separate columns of 1 to 10, 11 to 20 … 91 to 100? How would I do it for row major form? I want to do this with x as my only variable.
Edit: I also want to avoid using reshape.

Best Answer

b = bsxfun(@plus,(0:9).',1:10:100)