Question: 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
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:
.png)
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 a eight-element column vector named Da that contains the elements of the first and third rows of D.
(b) Create an eight-element raw vector named Db that contains the elements of the second and the fourth columns of D.
(c) Create a eight-element row vector named Dc that contains the first two elements of the first row, the last three elements of the second column, and the first three elements of the fourth row of D.
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
Step by Step Solution
3.31 Rating (166 Votes )
There are 3 Steps involved in it
Script file clear clc C1555 96561 DreshapeC44 dispPart a alternate DaD1 D3 Da D1 D3 dispP... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
652-B-F-F-M (570).docx
120 KBs Word File
