Question: Please do this in Matlab Assignment 6A . . Most engineering systems have redundancy -- multiple backup systems built in. For example, a nuclear reactor

Please do this in Matlab Assignment 6A . . Most engineering systemsPlease do this in Matlab

Assignment 6A . . Most engineering systems have redundancy -- multiple backup systems built in. For example, a nuclear reactor could have three temperature sensors. An alarm should go off if any two of the sensor readings disagree by more than 10 degrees. Write a function with this definition line: function (response) = myNukeAlarm(S1,S2,S3) where S1, S2, and S3 are the readings from each of the sensors. The output should be 'alarm!' if any two of the temperature readings disagree by more than 10 degrees, normal and 'normal' otherwise. Here are sample test cases: . >> response = myNukeAlarm (94, 96, 90) response >> response - myNukeAlarm(94,96, 80) response = alarm! >> response - myNukeAlarm(100, 96, 90) response - normal

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!