Question: problem. This function should have one input argument (x) and two output arguments (P and N) 15. A vector is given by x=[-3.5-5 6.2 11

problem. This function should have one input argument (x) and two output arguments (P and N) 15. A vector is given by x=[-3.5-5 6.2 11 0 8.1-9 0 3-1 3 2.5]. Using conditional statements and loops, 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 ele- ments 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
