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

Solve the following problems using MATLAB. Create a single *.m script file that

ID: 175352 • Letter: S

Question

Solve the following problems using MATLAB. Create a single *.m script file that contains the solutions for all three problems:

Problem 2: In this problem you will be plotting the bacteria growth as a function of time. The growth of a specific strain of bacteria has been determined to follow the relationship

y = yie^(kt)

where y is the number of bacteria at a given time, yi is the initial number of bacteria (assume yi is 1), k is a constant (1.386/hr), and t is the elapsed time in hours. Using the linspace function create an array for time from 0 to 7 hours in steps of 0.1 hours. Store the appropriate information in variables for yi, and k. Calculate the number of bacteria for each time period.

Scientists and engineers often prefer to plot data using log scales or inverse of one of the parameters so that the data is displayed as a straight line so that information at other points may be easily extracted. Using the subplot command, plot the number of bacterial as a function of time using linear scales for both axes; a log scale for the y axis and a linear scale for the x axis; a log scale for the x axis and a linear scale for the y axis; and a log scale for both axes. Label the axes and add titles for all four plots. In comments indicate which of these plots if any produce a straight line.

Explanation / Answer

Bactreial growth curve

time

                                        Bacterial growth

Bactreial growth curve

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote