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