Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Topics: Input and Output in MATLAB; Script.m files; Built in functions; if family structure Assume you work in a company that produces temperature sensors. Your

image text in transcribed

image text in transcribed

Topics: Input and Output in MATLAB; Script.m files; Built in functions; if family structure Assume you work in a company that produces temperature sensors. Your boss wants a MATLAB script that will allow him to enter the name of a temperature test, its date and time as well as a vector containing all the measured temperatures using a sensor. Also he needs to enter 3 parameters to be calculated. The list of the parameters he/she can select from is: mean, max, min, median and std. The script will then print a report with the test's name, date and time at the top, it will compute the 3 parameters entered by the boss and the ranked sorted list of the temperatures showing the ranking number with the temperature value in descending order. Outline: 1. Display a short welcome message to the user 2. Prompt the user to input the name of the test 3. Prompt the user to input the date of the test 4. Prompt the user to input the time of the test 5. Prompt the user to input the vector of the measured temperatures 6. Prompt the user to input the first parameter to calculate 7. Prompt the user to input the second parameter to calculate 8. Prompt the user to input the third parameter to calculate 9. Using the built-in functions to compute the 3 entered parameters 10.Using the built-in function to sort the measured temperature values in descending order 11.Display a brief report, including all of the above indicated inputs and result(s), which is formatted in a logical and readable fashion Note(s): Your program should produce output identical (when given the same input(s)) to the sample run(s) below, values and format. You will need to use the input and fprintf as well as mean(), median(), std(), max(), min(), sort() and elseif structure. Topics: Input and Output in MATLAB; Script.m files; Built in functions; if family structure Assume you work in a company that produces temperature sensors. Your boss wants a MATLAB script that will allow him to enter the name of a temperature test, its date and time as well as a vector containing all the measured temperatures using a sensor. Also he needs to enter 3 parameters to be calculated. The list of the parameters he/she can select from is: mean, max, min, median and std. The script will then print a report with the test's name, date and time at the top, it will compute the 3 parameters entered by the boss and the ranked sorted list of the temperatures showing the ranking number with the temperature value in descending order. Outline: 1. Display a short welcome message to the user 2. Prompt the user to input the name of the test 3. Prompt the user to input the date of the test 4. Prompt the user to input the time of the test 5. Prompt the user to input the vector of the measured temperatures 6. Prompt the user to input the first parameter to calculate 7. Prompt the user to input the second parameter to calculate 8. Prompt the user to input the third parameter to calculate 9. Using the built-in functions to compute the 3 entered parameters 10.Using the built-in function to sort the measured temperature values in descending order 11.Display a brief report, including all of the above indicated inputs and result(s), which is formatted in a logical and readable fashion Note(s): Your program should produce output identical (when given the same input(s)) to the sample run(s) below, values and format. You will need to use the input and fprintf as well as mean(), median(), std(), max(), min(), sort() and elseif structure

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

Provide two examples of clustering in the service sector.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago