Question: Need code written in Matlab please Write a function in a separate .n file with definition function (flag1, flag2] = threeNumberCmp(a, b, c) Your function

 Need code written in Matlab please Write a function in a

Need code written in Matlab pleaseseparate .n file with definition function (flag1, flag2] = threeNumberCmp(a, b, c)

Write a function in a separate .n file with definition function (flag1, flag2] = threeNumberCmp(a, b, c) Your function should do the following: Use if-elseif-else blocks for conditional execution. Make two types of checks o whether all three input numbers are negative, zero, or positive o whether the three numbers are given in increasing or decreasing order Return two flag variables with one of the following values: -1, if the three numbers are in decreasing order (i.e. a > b >c) flagi= 1, if the three numbers are in increasing order (i.e. a

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!