Question: Write a Matlab script that collects the components of a vector of 10 numbers in two separate vectors of positive and negative numbers. If

Write a Matlab script that collects the components of a vector of

Write a Matlab script that collects the components of a vector of 10 numbers in two separate vectors of positive and negative numbers. If the component value is zero it is collected in the vector of positive numbers. Name your first vector of 10 components as v. Name your vector of positive components as p. Name your vector of negative components as n. Write your Matlab script inside the box below

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 Programming Questions!