Question: WRITE IN MATLAB Problem 3: Solve problem 15 on page 212 of Gilat's book. Write a function that solves the ts (P and N) 15.

WRITE IN MATLABWRITE IN MATLAB Problem 3: Solve problem 15 on page 212 of

Problem 3: Solve problem 15 on page 212 of Gilat's book. Write a function that solves the ts (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

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!