Question: Write a function to create a matrix that shows the multiplication tables from 1 to N, where N is the input to the function. The
Write a function to create a matrix that shows the multiplication tables from 1 to N, where N is the input to the function. The first row of the matrix will contain the values 1 to N. and the first column of the matrix will contain the values 1 to N. All the other elements of the matrix will contain the row number times the column number. The result for N = 10 is shown below. (Adapted from www.mathworks.com/matlabcentral/cody)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
