Question: PLEASE ONLY ATTEMPT IF YOU ARE SURE! I need the answer to number 8, but you can't do number 8 without number 7. so if
PLEASE ONLY ATTEMPT IF YOU ARE SURE! I need the answer to number 8, but you can't do number 8 without number 7. so if you could do that as well, that would be great!

7. 70 Points Write a MATLAB function numcomp1() that reads two numbers numl and num2 from the keyboard, and then retruns 0 if numl and num2 are equal, returns 1 if numl is greater than num2, and returns -1 if numl is less than num2. 8. (30+40 70 Points) Rerite the MATLAB function numcomp1( developed in question 7 such that it takes two numbers numl and num2 as input arguments, and then retruns o if num1 and num2 are equal, returns 1 if numl is greater than num2, and returns -1 if num1 is less than num2 Rename the function as numcomp2. Test your code with the pairs (10, 5), (-3, -3), and (2, 10) as input. Attach a screen-shot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
