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