Question: Write a function called CheckInputs which checks if three input parameters are the correct data types. The first, second, and third input variables must be
Write a function called CheckInputs which checks if three input parameters are the correct data types. The first, second, and third input variables must be a string, numeric, and logical data type, respectively. The output of CheckInputs should be a logical row array, errorCode, with values.
If all the tests pass, then errorCode should consist of only false values. If the st input parameter is not a string, the st array element in errorCode is set true. If the nd input parameter is not a numeric, the nd array element in errorCode is set true. If the rd input parameter is not a logical variable, the rd array element in errorCode is set true. The th array element in errorCode is set true if three input parameters are not present.
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
