Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions