Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are a biomedical engineer and the results of your experiment are found in th

ID: 3815677 • Letter: Y

Question

You are a biomedical engineer and the results of your experiment are found in the text file ‘BacteriaCounts.txt’. For this experiment, 100 petri dishes have been stored at a particular condition believed to be good at slowing the growth of a certain bacteria. The first column of data in the file is the dish number while the second column of data is the amount of surface area covered by bacteria in square inches at a point in time. The amount of bacteria in the culture is classified as Low, Medium-Low, Medium, Medium-High, and High depending on the surface area covered by bacteria. Table 1 provides the surface area coverage that corresponds to each classification

Program being used is Matlab

Link for BacteriaCounts.txt file: https://www.4shared.com/office/_WLD5Rz7ei/BacteriaCounts.html

Table 1: Bacteria Count Classification Surface Area Covered by Bacteria (in2) Bacteria Classification X 2.5 Low 2.5 x 4.5 Medium-Low 4.5 x 6.5 Medium 6.5 x 8.5 Medium-High High 8.5

Explanation / Answer

%% classify: function description
function classify(arg)
   y = dlmread('BacteriaCounts.txt');
   keySet = ['Low'; 'Medium-Low'; 'Medium'; 'Medium-High';'High' ];
   valueSet = zeros(1,5);
   for val = 1:100
       if y(val,2) < 2.5
           valueSet(1)+= 1;
       elseif y(val,2) >= 2.5 && y(val,2) <4.5
           valueSet(2) += 1;
       elseif y(val,2) >= 4.5 && y(val,2) <6.5
           valueSet(3) += 1;
       elseif y(val,2) >= 6.5 && y(val,2) <8.5
           valueSet(4) += 1;
       elseif y(val,2) >= 8.5
           valueSet(5) += 1;
          
       end  
   end
   for i = 1:5
       disp(keySet(i,1:end));
       disp(valueSet(i));
   end