Question: 34. Create the following vector A. A matrix B from the vector A: [T 23 45678 9 10 11 12 13 14 15 16 17
34. Create the following vector A. A matrix B from the vector A: [T 23 45678 9 10 11 12 13 14 15 16 17 18 Then using the MATLAB's built-in reshape function create the following olun 1 4 7 10 13 16 B-12 5 8 11 14 17 3 6 9 12 15 18 By writing one command and using the colon to address range of elements (a) Create a nine-element column vector named Ba that contains the ele- (b) Create a seven-clement row vector named Bb that contains elements 2 (c) Create a six-element row vector named Bc that contains elements 3 (do not type individual elements explicitly), use the matrix B to: ments of the first, third, and fifth columns of B. through 5 of the second row of B and the elements of the third column of B through 5 of the first row, and elements 2 through 4 of the third row of B. 35. Create the following vector C C., [1.5 2 2.5 3 3.5 4 4.5 5 9.6 9.1 8.6 8.1 7.6 7.1 6.6 6.1] Then use MATLAB's built-in reshape function and the transpose operation to create the following matrix D from the vector C 1.5 2 2.53 D 3.5 4 4.5 5 9.6 9.1 8.6 8.1 7.6 7.1 6.6 6.1 By writing one command and using the colon to address a range of elements (do not type individual elements explicitly), use the matrix D to: (a) Create an eight-element column vector named Da that contains the ele- ments of the first and third rows of D. of the second and the fourth columns of D. elements of the first row, the last three elements of the second column, and (b) Create an eight-element named Db that contains the elements (c) Create aneight-element row vector named De that contains the first two the first three elements of the fourth row of D. 36. Create the following matrix E 0 555s s E- 0.1 0.3 0.5 0.7 0.7 0.9 12 9 6 3 0-3 6 7 8 9 10 11 (a) Create a 2x3 matrix F from the second and third rows, and the third 34. Create the following vector A. A matrix B from the vector A: [T 23 45678 9 10 11 12 13 14 15 16 17 18 Then using the MATLAB's built-in reshape function create the following olun 1 4 7 10 13 16 B-12 5 8 11 14 17 3 6 9 12 15 18 By writing one command and using the colon to address range of elements (a) Create a nine-element column vector named Ba that contains the ele- (b) Create a seven-clement row vector named Bb that contains elements 2 (c) Create a six-element row vector named Bc that contains elements 3 (do not type individual elements explicitly), use the matrix B to: ments of the first, third, and fifth columns of B. through 5 of the second row of B and the elements of the third column of B through 5 of the first row, and elements 2 through 4 of the third row of B. 35. Create the following vector C C., [1.5 2 2.5 3 3.5 4 4.5 5 9.6 9.1 8.6 8.1 7.6 7.1 6.6 6.1] Then use MATLAB's built-in reshape function and the transpose operation to create the following matrix D from the vector C 1.5 2 2.53 D 3.5 4 4.5 5 9.6 9.1 8.6 8.1 7.6 7.1 6.6 6.1 By writing one command and using the colon to address a range of elements (do not type individual elements explicitly), use the matrix D to: (a) Create an eight-element column vector named Da that contains the ele- ments of the first and third rows of D. of the second and the fourth columns of D. elements of the first row, the last three elements of the second column, and (b) Create an eight-element named Db that contains the elements (c) Create aneight-element row vector named De that contains the first two the first three elements of the fourth row of D. 36. Create the following matrix E 0 555s s E- 0.1 0.3 0.5 0.7 0.7 0.9 12 9 6 3 0-3 6 7 8 9 10 11 (a) Create a 2x3 matrix F from the second and third rows, and the third
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
