Question: 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


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
Get step-by-step solutions from verified subject matter experts
