Question: Write the function sum2.m that accepts a matrix m and returns the summation of the positive numbers and the summation of the negative numbers
Write the function sum2.m that accepts a matrix m and returns the summation of the positive numbers and the summation of the negative numbers in m. The outputs are sum_p, and sum_n. Use the function sum to calculate the summation.
Step by Step Solution
There are 3 Steps involved in it
Sure Here is the sum2m function that you can use to calculate the summation ... View full answer
Get step-by-step solutions from verified subject matter experts
