ANSWER WITH MATLAB CODE Consider an experiment where bacteria are grown on a platedivided into an R-

ANSWER WITH
MATLAB CODE Consider an experiment where bacteria are grown on a platedivided into an R-by-C grid. Let matrix M (with R rows, C columns)represent the number of bacteria in each block of this grid. When adrop of antibiotic is delivered to a specific block at row x andcolumn y, it kills all of the bacteria on that block and half ofthe bacteria in all of the neighboring blocks. The figure belowshows an example of a plate composed of a 4-by-4 grid, where thenumbers represent bacteria count in each block. After theantibiotic is delivered to the block at 2nd row and 3th column, itkills all of the 10 bacteria on that block and half of the bacteriain neighboring blocks: (2+3+13+11+8+7+6+12)/2=31; killing a totalof 41 bacteria. Write a function remainingbacteria(M,x,y) that returns the totalnumber of bacteria killed and the new matrix with the remainingnumber of bacteria in each block. THE CORRECT ANSWER WILL RETURN THE FOLLOWING OUTPUTSEXACTLY: >> [kills,newgrid]= remainingbacteria([16 2 3 13; 5 11 10 8; 9 7 6 12; 4 14 15 1],2,3)kills = 41newgrid = 16.0000 1.0000 1.5000 6.5000 5.0000 5.5000 0 4.0000 9.0000 3.5000 3.0000 6.0000 4.0000 14.0000 15.0000 1.0000>> [kills,newgrid]= remainingbacteria([16 2 3 13; 5 11 10 8],1,4)kills = 23.5000newgrid = 16.0000 2.0000 1.5000 0 5.0000 11.0000 5.0000 4.0000 Attached

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.