Question: MATLAB 5. A vector is given by x=[3.556.21108.1903132.5]. Using conditional statements and loops in MATLAB, write a program that creates two vectors from x one

MATLAB MATLAB 5. A vector is given by x=[3.556.21108.1903132.5]. Using conditional statements and

5. A vector is given by x=[3.556.21108.1903132.5]. Using conditional statements and loops in MATLAB, write a program that creates two vectors from x one (call it P ) that contains the positive elements of x, and a second (call it N ) that contains the negative elements of x. In both P and N, the elements are in the same order as in X

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!