Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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. aStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started