Question: Creating and Modifying Arrays In your script file, create the following three row vectors: 5 8 -1 0 2 - 4 4 -3 1 5

Creating and Modifying Arrays Creating and Modifying Arrays In your script file, create the following three

In your script file, create the following three row vectors: 5 8 -1 0 2 - 4 4 -3 1 5 9 0 -2 6 3 1 -5 -7 Given the provided vectors, create the following arrays according to the format specified in the table. Variable Elements and instructions A nine-element row vector consisting of the first three elements of vectors a, b, and c: 5, 8,-1,4, 1,9; -3,5, 0 A nine-element column vector consisting of the last three elements of vectors a, b, and c: 0, 2, -4, -2,3,-5, 6, 1, -7 A matrix where the rows correspond to vectors a and b: Row 1: 5, 8,-1, 0, 2,-4 Row 2:4, 1, 9, -2, 3, -5 Make a copy of matrix C and store it in the variable D. Add a fourth row with values corresponding to the vector c. Row 1: 5, 8,-1, 0, 2,-4 Row 2:4, 1, 9, -2, 3,-5 Row 3:0, 0, 0, 0, 0, 0 (this row will automatically be created) Row 4: -3,5, 0, 6, 1, -7 Make a copy of matrix E and store it in variable E. Change the third row to have values of -1, -2, -3, -4,-5, -6. Row 1: 5, 8,-1, 0, 2, -4 Row 2:4, 1, 9, -2, 3, -5 Row 3: -1, -2, -3, -4,-5, -6 Row 4: -3,5, 0, 6, 1, -7 Make a copy of matrix E and store it in the variable F. Delete the third column. Row 1: 5, 8, 0, 2, -4 Row 2:4, 1, -2, 3, -5 Row 3: -1, -2, -4,-5, -6 Row 4: -3, 5, 6, 1, -7 H_R, HC Use a built-in MATLAB function to determine the dimensions of matrix F and assign the output to Gone variable). Use a built-in MATLAB function to determine the dimensions of matrix F and assign the number of rows to H R and the number of columns to HC A six-element row vector containing the first three elements of row 1 in matrix F followed by the last three elements of row 3 in matrix F: 5, 8, 0, -4,- 5, -6 A six-element column vector containing the 2nd, 4th, and 5th elements of row 2 in matrix F followed by the first three elements in column 4 in matrix F: 1, 3,- 5, 2, 3,-5 Your final script file must contain 11 variables: A, B, C, D, E, F, G, H_R, H_C, I, and J. You may use, and are encouraged to use any other variables you create

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!