Question: MATLAB MATLAB Write a function splitem that will receive one vector of numbers as an input argument, and will return two vectors: one with the
MATLAB
MATLAB
Write a function "splitem" that will receive one vector of numbers as an input argument, and will return two vectors: one with the positive (> = 0) numbers from the original vector, and the second, the negative numbers from the original vector. Use vectorized code (no loops) in your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
