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 that has two inputs, in and in and two outputs, out and out
When both inputs are nonnegative, out should be the result of the operation:
When both inputs are nonnegative, out should be the result of the operation: in
If either input is negative, instead make out equal to in and out equal to in
Once you have written this function, write the proper syntax for calling this function elsewhere in MATLAB. Use appropriate inputs ie actual values when writing this syntax.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
