Question: Task 3 (20 points) Consider the following vector vec: vec = [-11 5 3 2-184-55,-66] , The vector vec erroneously stores positive values. We would

 Task 3 (20 points) Consider the following vector vec: vec =

Task 3 (20 points) Consider the following vector vec: vec = [-11 5 3 2-184-55,-66] , The vector vec erroneously stores positive values. We would like to eliminate those positive values so that we are left with the following values for vec: vec-11-18-5661 Your task is to determine where the positive values are and then to delete them from the elements of vec. You must present two methods to achieve the task: a) using the built-in Matlab function find and create new vector called vec1, b) using a logical vector and create new vector called vec2

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!