Question: Matlab Question: #3 Consider a row vector with 100 elements, where the first element is -30, the last is 10, with all numbers evenly spaced.

Matlab Question:

#3 Consider a row vector with 100 elements, where the first element is -30, the last is 10, with all numbers evenly spaced.

a). Assign such a vector to v1.

b). Assign v2 to a column vector with the same elements.

c). Assign v3 to a column vector that consists of all elements of v2 from the 19th through the 91st, including the 19th and 91st.

d). Multiply the 45th element by the 87th element v2, assigning the result to v2prod.

e). Assign variable v2sub to a vector that contains only the 10th through the 50th element of v2, including the first and last of these.

f). Assign variable b2mat to a matrix that has three columns, each of which is v2.

g). Assign variable v2mat2 to a matrix that has three rows, each of which is the transpose of v2.

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!