Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1. A-D All work must be done in MATLAB. 1b. 1c. 1D. 1e. Write a script for the following branching function: m 7. Most
Question 1. A-D All work must be done in MATLAB.
1b.
1c.
1D.
1e.
Write a script for the following branching function: m 7. Most engineering systems have redundancy. That is, an engineering syste has more than is re quired to accomplish its purpose. Consider a nuclear reactor whose temperature is monitored by three sensors. An alarm should go off if any two of the sensor readings disagree. Write a function with header [ response] myNukeAlarm (S1, S2, S3) where S1, S2, and S3 are the temperature readings for sen- sor 1, sensor 2, and sensor 3, respectively. The output response should be the string 'alarm! if any two of the temperature readings disagree by strictly more than 10 degrees and 'normal' otherwise. Test Cases: response = myNukeAlarm ( 94, 96, 90) response = normal >> response response = alarm! myNukeAlarm (94,96,80) response -myNukeAlarm(100,96,90) response = normal Input S1-94, S2-98, S3-92 What reponse will be displayedStep 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