Question: Write a program to: 1) Build a matrix called R consists of multidimensional arrays. This matrix contains four layers; each layer is 35 sub-matrixes.
Write a program to: 1) Build a matrix called R consists of multidimensional arrays. This matrix contains four layers; each layer is 35 sub-matrixes. First layer is sub-matrix with numbers from 2 to 30 with step 2, second layer is ones matrix, third layer is zeros matrix and last layer is positive random matrix. 2) Create a new matrix called H using reshape command to shape the matrix R to a new 125 matrix. 3) Permute array dimensions of R to four rows, three columns and five layers. 4) Rotate the matrix H to 90 counterclockwise to create a new matrix called K.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
