Question: Write a function called problem 3 that has two inputs, in 1 and in 2 , and two outputs, out 1 and out 2 .

Write a function called problem 3 that has two inputs, in 1 and in 2, and two outputs, out 1 and out2.
When both inputs are non-negative, out 1 should be the result of the operation: in12-in2.
When both inputs are non-negative, out 2 should be the result of the operation: i2n2- in1.
If either input is negative, instead make out1 equal to in1 and out2 equal to in2.
Once you have written this function, write the proper syntax for calling this function elsewhere in MATLAB. Use appropriate inputs (i.e. actual values) when writing this syntax.
 Write a function called problem 3 that has two inputs, in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!