- 31 Create The Following Vector C C 0 7 1 9 3 1 4 3 5 5 6 7 7 9 9 1 10 3 11 5 12 7 13 9 15 1 16 3 17 Then Use Matl 1 (61.84 KiB) Viewed 55 times
31. Create the following vector C. C = [0.7 1.9 3.1 4.3 5.5 6.7 7.9 9.1 10.3 11.5 12.7 13.9 15.1 16.3 17.] Then use MATL
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
31. Create the following vector C. C = [0.7 1.9 3.1 4.3 5.5 6.7 7.9 9.1 10.3 11.5 12.7 13.9 15.1 16.3 17.] Then use MATL
31. Create the following vector C. C = [0.7 1.9 3.1 4.3 5.5 6.7 7.9 9.1 10.3 11.5 12.7 13.9 15.1 16.3 17.] Then use MATLAB's built-in reshape function and the transpose operation to create the following matrix D from the vector C: 10.7 1.9 3.1 4.3 5.5 D = 6.7 7.9 9.1 10.3 11.5 (12.7 13.9 15.1 16.3 17.5 Use the matrix D to: (a) Create a nine-element column vector named ua that contains the ele- ments of the first, third, and fourth columns of D. (b) Create an eight-element raw vector named ub that contains the elements of the second row of D and the third column of D. (c) Create a six-element row vector named uc that contains the first three ele- ments of the first row of D and the last three elements of the last row of D.