Page 1 of 1

NEED HELP WITH MATLAB SCRIPT, USE SAME NAMES FOR OUPUTS AND INPUTS, DO AS PER INSTRUCTIONS IN THE PICTURE. THANK YOU.

Posted: Sun Jul 10, 2022 11:25 am
by answerhappygod
NEED HELP WITH MATLAB SCRIPT, USE SAME NAMES FOR OUPUTS ANDINPUTS, DO AS PER INSTRUCTIONS IN THE PICTURE. THANK YOU.
Need Help With Matlab Script Use Same Names For Ouputs And Inputs Do As Per Instructions In The Picture Thank You 1
Need Help With Matlab Script Use Same Names For Ouputs And Inputs Do As Per Instructions In The Picture Thank You 1 (214.07 KiB) Viewed 64 times
Temperature Validation You are given a spreadsheet, named "E_Coli Incubation.xlsx", which contains data from incubating water samples to test for E. coli. At the top, the spreadsheet has some header information which includes the incubation temperature with units. For the results of the E. coli test to be valid, the temperature must be within the temperature range 35+1°C (i.e., between 34 - 36 deg C including the boundaries). Because the data s recorded by the lab technician, the units used for temperature might vary. Your program should work if the temperature recorded in units Celsius or Fahrenheit. See the image below for how the header i arranged. A 1 Experiment Number 2 Date 3 Temperature. 4 5 6 Plate A 7 Plate B 8 Plate C 9 Control 10 11 B EC_SCBG_11_12 November 12 Count 36.9 Celcius 5 3 7 0 My Solutions > D E Write a program which will read in the temperature and units from the spreadsheet, check if the temperature is within the acceptable range, and set a variable Status to contain one of the following character arrays: Invalid Unit - if the temperature unit listed anything other than Celsius or Fahrenheit (because this is entered by the technician, capitalization of the unit names does not matter) In Range - if the temperature was within the acceptable range for the E. coli test to be considered valid
▪ Invalid Unit - if the temperature unit listed is anything other than Celsius or Fahrenheit (because this is entered by the technician, capitalization of the unit names does not matter) In Range - if the temperature was within the acceptable range for the E. coli test to be considered valid ■ Out of Range - if the temperature was outside the acceptable range for the E. coli test to be considered valid Script> 1% Variables to be used 2% Input 3 "E_Coli Incubation.xlsx" spreadsheet 4 5% Outputs 6% Unit - character array of temperature unit listed in spreadsheet 7 % Temp - scalar containing temperature listed in spreadsheet 8 % Status character array containing appropriate status message based on temperature 9 9 10 % Inputs 11 Generate_Spreadsheet This creates the "E_Coli Incubation.xlsx" spreadsheet for your code 12 13 % Program 14 % Start writing your programs here 15 Save C Reset MATLAB Documentation