Question: 3. Using Matlab a. b. c. d. Create the 7x7 matrix B1, all elements of it shall be O's. Create the 9x9 matrix B2, all

 3. Using Matlab a. b. c. d. Create the 7x7 matrix

3. Using Matlab a. b. c. d. Create the 7x7 matrix B1, all elements of it shall be O's. Create the 9x9 matrix B2, all elements of it shall be 3's. Create the 5x5 matrix B3, with 1's at its diagonal and O's for the rest. Create the 4x4 matrix B4, with the values [1 33 7] at its diagonal and O's for the rest. e. f. g. h. Create the row vector B5, with 8 uniformly distributed random numbers. Create the column vector B6, with 5 normally distributed random numbers. Create the 7x5 matrices C1 and C2, by concatenating A3 and B3 in two different ways. Create the 5x2 matrices C3 and C4, by concatenating A2 and B6 in two different ways. 4 Need codes for each part Using Matlab a. Print the second row of B3. b. Print the third column of A3. c. Print rows 1,2 and columns 2,3 of B4. d. Print all rows of A6 except the first. e. Set the last element of A1 to be -42. f. Set the last three elements of A2 to be (13, 47, 91) in a single operation. g. Set rows 2, 3, 4, 5, 6 of B2 to be all 88's. h. Remove the last column of B4 i. Increment each element of the matrix B1 by -2. j. Print the result of the operation C1+C2 k. Print the result of the operation C3 -C4. I. Print the size of matrix C1. m. Print the row count of matrix C1. n. Print the column count of matrx C1 o. Resize the matrix C1 to be 1x35. p. Sort A1 such that it is in ascending order. q. Sort B4 such that its columns are in descending order. r. Print the sum of the columns of B4. s. Print the sum of all elements of B4. t. Print the mean of the rows of B1. u. Print the mean of all elements of B1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!