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

Matlab Matlab A. Write a function called myFunction that has two inputs, ini

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

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!