subject

Write a function called checkinputs which checks if three inputs 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 4 values. if all the tests pass, then errorcode should consist of only false values. if the 1st input parameter is not a string, the 1st array element in errorcode is set true. if the 2nd input parameter is not a numeric, the 2nd array element in errorcode is set true. if the 3rd input parameter is not a logical variable, the 3rd array element in errorcode is set true. the 4th array element in errorcode is set true if three input parameters are not present.

ex:

> > name='joe'; gpa=3; enrollstatus=true; % all datatypes correct

errorcode = checkinputs(name, gpa, enrollstatus)

errorcode =

1×4 logical array

0 0 0 0

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Which group on the home tab allows you to add shapes to a powerpoint slide?
Answers: 1
question
Computers and Technology, 22.06.2019 10:10
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
You know the right answer?
Write a function called checkinputs which checks if three inputs parameters are the correct data typ...
Questions
question
Computers and Technology, 24.02.2021 20:10
question
Mathematics, 24.02.2021 20:10
question
Mathematics, 24.02.2021 20:10
question
Mathematics, 24.02.2021 20:10
question
Mathematics, 24.02.2021 20:10
Questions on the website: 13722361