Correspond the bacteria names with their codes


Data load function Interface function data = data Load (filename) % insert your code here Input arguments filename: A string containing the rename of a data le. Output arguments data: An N 3 matrix. User input no. Screen output Yes (error message, see speciation's below.) Description The function must read the data in the data le filename. Each line in the data le consists of the following elds: Temperature, Growth rate, and Bacteria. The elds contain numeric values and are separated by a space character. The following illustrates an example excerpt of such a data le: 25 0.109 1 20 0.096 2 15 0.517 3 35 1.086 4 40 0.934 2 35 0.109 1 ... The Bacteria eld is a numeric code that correspond to one of the following bacteria names:

                Bacteria Name

i.              Salmonella enterica

ii.             Bacillus cereus

iii.             Listeria

iv.            Brochothrix thermosphacta

The data in the le must be stored in an N 3 matrix called data, where N is the number of valid rows in the data le. Handling data errors there might be one or more erroneous lines in the data le which the function must handle. If the data load function detects an erroneous line in the data le it must skip this line, output an error message to the screen, and continue with the next line. The function must only return the data from the valid rows. The error message must explain in which line the error occurred and what the error was. The function should check for the following: The Temperature must be a number between 10 and 60. The Growth rate must be a positive number. The Bacteria must be one of the four mentioned in the table above.

Justify your answer and describe it.

Request for Solution File

Ask an Expert for Answer!!
Biology: Correspond the bacteria names with their codes
Reference No:- TGS0876005

Expected delivery within 24 Hours