Question: Assume you have a vector x = [ 5 , 4 , 9 , 3 , 1 ] in MATLAB. You want to create a

Assume you have a vector x=[5,4,9,3,1] in MATLAB. You want to create a new vector y that contains all elements of x but in reverse order. Which of the following commands accomplishes this?
A.y=flip(x)
B.y=reverse(x);
c. end :-1:1;
D.y=x(-1)
 Assume you have a vector x=[5,4,9,3,1] in MATLAB. You want to

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!