Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

If he or she did write a plan, for what has it been used?

Answered: 1 week ago

Question

14-18 Compare the two major types of planning and control tools.

Answered: 1 week ago