Question: 2. Create the row vector A1, its elements shall be the even digits of base 10 with increasing order Create the column vector A2, its
2. Create the row vector A1, its elements shall be the even digits of base 10 with increasing order Create the column vector A2, its elements shall be the odd digits of base 10 with decreasing order a. b. c. Create a 2x5 matrix called A3, its elements shall be all digits in base 10. d. Create the column vector A4, its elements shall be all two-digit numbers in base 10 and e. Create the row vector A5, its elements shall be the numbers from -5 to 5 with f. Create the column vector A6, its elements shall be (10101010) & Create the row vector A7, its elements shall be the characters of the sentence "I love in decreasing order increments of (1/5). (logarithmically spaced numbers between 1 and 10). codingl" 3. a. Create the 7x7 matrix B1, all elements of it shall be O's b. Create the 9x9 matrix B2, all elements of it shall be 3's c. Create the 5x5 matrix 83, with 1's at its diagonal and O's for the rest d. Create the 4x4 matrix 84, with the values [(13 3 71 at its diagonal and O's for the rest. e. Create the row vector B5, with 8 uniformly distributed random numbers. f. Create the column vector B6, with 5 normally distributed random numbers. g. Create the 7x5 matrices C1 and C2, by concatenating A3 and 83 in two different ways. h. Create the 5x2 matrices C3 and C4, by concatenating A2 and B6 in two different ways. a. Print the second row of 83. 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. . 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 -CA L Print the size of matrix C1. m. Print the row count of matrix C1. n. Print the column count of matrix 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 81 5. a. Write a line of code that asks the user the meaning of life, only accepts numeric input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
