Question: matlap question 1. A vector is given by : [-3.5 -5 6.2 11 0 8.1 -9 0 3 -1 3 2.5] X = Using conditional

matlap question
1. A vector is given by : [-3.5 -5 6.2 11 0 8.1 -9 0 3 -1 3 2.5] X = Using conditional statements and loops, create a vector from x-one (call it P) that contains the positive elements of x, and another vector (call it ) that contains the negative elements of x. In both Pand N, the elements are in the same order as in x. 2. Write a program (using a loop) that determines the expression: m 12 (-1/3) 2n + 1 n=0 Run the program with ml = 5, m2 = 10, and m3 = 20. Save the solution for each value of m into soll, sol2 and sol3 respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
