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

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

1 Expert Approved Answer
Step: 1 Unlock

Sure Here is the sum2m function that you can use to calculate the summation ... View full answer

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!