Question: Matlab A. Write a function called myFunction that has two inputs, ini and in 2, and two outputs, outi. When the product of ini and
A. Write a function called myFunction that has two inputs, ini and in 2, and two outputs, outi. When the product of ini and in 2 is positive, outi should be the string 'Same sign! Otherwise, when the sum of in 1 and in 2 is 0, out1 should be the string 'Same magnitude. Otherwise, when the product of in 1 and in 2 is 0. out1 should be the string Zero Value. Otherwise, the out1 should be the string 'Different sign. B. How many test cases do you think you should create to test this function? Why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
