Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

1b.

image text in transcribed

1c.

image text in transcribed

1D.

image text in transcribed

1e.

image text in transcribed

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 displayed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago