MATLAB: How to create a Matlab 10×10 matrix of numbers 1-100 matrix How do I create a Matlab 10×10 matrix that contains the numbers 1-100 in column major form? I am not allowed to use the colon operator more than four times. Best Answer A=reshape(1:100,10,10)orA=reshape(1:100,10,10)' Related SolutionsMATLAB: How to make a 10 x 10 matrix variable with the numbers 1 to 100, in both column and row major forms b = bsxfun(@plus,(0:9).',1:10:100) MATLAB: How to create a Matlab 5×5 matrix of numbers 1-100 Use X=randi(100,1,5*5) to get random integers <=100 or x=rand(1,5*5)*100 if you want floating decimals. Then use sort() to achieve increasing order. Then reshape the vector back into a 5x5 matrix using reshape(). Related QuestionHelp with multiplying matrixReshaping a matrix dimensionHow to construct the 10×10 matrixHow to do a matrix like this?
Best Answer