Question: use R 2. (10 points) Write a function called makeMatrix to create such a matrix with the dimen- sion as an argument. When you call

use R
2. (10 points) Write a function called makeMatrix to create such a matrix with the dimen- sion as an argument. When you call makeMatrix(n), the function should return the following n n matrix 1010 0 0 1 01 ...0 0 0 0 0 0 where n is a positive integer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
