Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 respectivelyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started