👤

(a) Using MATLAB's randi function, create a 12 x 12 matrix of random integers, each in the inclusive range from -10 to 10, and assign the matrix to variable A (b) Create a row vector b storing in each of its elements the number of zeros occurring in the corresponding column of matrix A. For example, if the fourth column of matrix A contains 3 zeros, the fourth element of vector b should store the value 3. (c) Obtain and output to the screen the total number of zeros contained in matrix A. (d) Create a new matrix called C comprised of the column(s) of matrix A containing the greatest number of zeros. Here is an example of what the output might look like:

Answer :