Question: WITH NO FOR OR IF LOOPS I NEED HELP PLEASE!!! Your current grade: 0 ( out of 1 ) Submit a new file Number of
WITH NO FOR OR IF LOOPS I NEED HELP PLEASE!!! Your current grade: out of
Submit a new file
Number of submissions left today:
Due date: :: Remaining time: hours mins
Late Penalty: per day not prorated
remainingbacteriadnoedgecase
Consider an experiment where bacteria are grown on a rectangular petri dish divided into an by grid. Let matrix with rows, columns represent the number of bacteria in
each block of this grid. When a drop of antibiotic is delivered to a specific block at row and column it kills all of the bacteria on that block and half of the bacteria in all of the
neighboring blocks. The figure below shows an example of a plate composed of a by grid, where the numbers represent bacteria count in each block. After the antibiotic is delivered
to the block at nd row and th column, it kills all of the bacteria on that block and half of the bacteria in neighboring blocks.
Write a function remainingbacteriadnoedgecase that returns a matrix representing the number of bacteria remaining on each block of the petri dish after the antibiotic has
killed bacteria as described above.
Assume that the antibiotic is never delivered to the grids on the edges of the petri dish.
this code did not work and gave me the errors as shown in the picture I attached...
function M remainingbacteriadnoedgecaseMxy
Mxy Mxy; Upper block
Mxy Mxy; Lower block
Mxy Mxy; Left block
Mxy Mxy; Right block
Mxy; Current block
end Grading details
InputOutput :
InputOutput :
InputOutput :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
