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
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
Get step-by-step solutions from verified subject matter experts
