Question

Part A (Based off week 2 Workshop content) Sam, a biological engineer, is modelling the population of bacteria (B) grow ing on petri dish. Sam observes that the growth over time of the bacteria fits the equation Cert B(t) = 1. (AMS Submission) Write a MATLAB function that accepts four inputs C, r, K and t and outputs bacteria population. The function should work given t is a scalar or a vector. You may assume that all other inputs are scalars. 2, (AMS Submission) By setting r = 1, C = 100 and t = 0 : 20, plot 5000. What the bacteria growth for K- 1000, K 3000, and K - does K represent? 3. Sam starts with 500 bacteria in his petri dish. Seven days later, the number of cells has doubled. Given that the petri dish can support a maximum of 9000 cells, calculate the values of C, r and K. Plot the solution and comment whether the plot matches Sams observations 4. (AMS Submission) Assume that each time bacteria is grown, Sam records the initial bacteria population, the time it takes for the initial population to double, and the final (maximum) population. Create a function that will tell Sam the values of C, r and K

Please help - i dont know how to solved these

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution 1. MATLAB Code: %function definition for population of function B = bacteriaFunction(c,r, K, t) %compute B(t) B = Cexp ( r * t ) ( 1+C/Kexp ( r * t )); %plot the t and B(t) bacteria %label for x-axis xlabel(t label for y-axis ylabel (B (t) ); hold oin end %call given function B-bacteriaFunction (100,1,1000,0:20)

copyable code:

MATLAB Code:

%function definition for population of bacteria

function B = bacteriaFunction(C,r,K,t)

%compute B(t)

B = C*exp(r*t)./(1+C/K*exp(r*t));

%plot the t and B(t)

plot(t,B)

%label for x-axis

xlabel('t');

%label for y-axis

ylabel('B(t)');

hold on

end

%call given function

B = bacteriaFunction(100,1,1000,0:20)

MATLAB Code:

%function definition for population of bacteria

function B = bacteriaFunction(C,r,K,t)

%compute B(t)

B = C*exp(r*t)./(1+C/K*exp(r*t));

%plot the t and B(t)

plot(t,B)

%label for x-axis

xlabel('t');

%label for y-axis

ylabel('B(t)');

hold on

end

t = linspace(0,20,101);

r = 1;

C = 100;

K = 1000;

%call given function

bacteriaFunction(C,r,K,t);

K = 3000;

%call given function

bacteriaFunction(C,r,K,t);

t = linspace(0,20,101);

r = 1;

C = 100;

K = 5000;

%call given function

bacteriaFunction(C,r,K,t);

legend('K=1000','K=3000','K=5000')

%function definition for double population

function [C,r] = bacteriaDoubleFunction(B,K,tn)

%compute C value

C = B*K/(K-B);

%compute r value

r = 1/tn*log(2*B/(C-2*B*C/K));

end

%call function

[C,r] = bacteriaDoubleFunction(500,9000,7)

Add a comment
Know the answer?
Add Answer to:
Please help - i dont know how to solved these Part A (Based off week 2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please show steps so I can follow along 11-A pathologist observes that the bacteria in the...

    please show steps so I can follow along 11-A pathologist observes that the bacteria in the dish have been growing exponentially from 1000 to 1800 between 1 p.m. and 3 p.m. (8 pts.) a) Given that the growth is exponential, N = Noe't where N is the number of bacteria and No is the initial bacteria count, use the information to find r, rounded to 3 decimal places. Hint: 1 p.m. is when t = 0. b) How many bacteria...

  • Part B (Based off week 4/6 workshop content) The rear suspension of a mountain bike consists of a...

    Can you help with Q5? Part B (Based off week 4/6 workshop content) The rear suspension of a mountain bike consists of a spring suspended in a fluid and can be modelled as a spring and damper systemm r(t) 1. Draw a free body diagram of the scenario above and show that the resulting ODE is given by dtm dtm 7m where c is the damping constant, k is the spring stiffness, r(t) is the force pressing into the frame...

  • Please help me, my professor wants us to explain step by step each problem but I...

    Please help me, my professor wants us to explain step by step each problem but I cant! This is worth many points so please help me! Thank you! Writing Assignment 4 The following application and statements a., b., d., e., and f. can be found Sullivan's PreCalculus 9t www wennnnm edition pages 336-337. "A strain of E-coli SC18del-recA718 is placed into a nutrient broth at 30° Celsius and allowed to grow. The data given below are collected where x is...

  • help please, i dont know how to do it Charging A 1000uF capacitor was charged using...

    help please, i dont know how to do it Charging A 1000uF capacitor was charged using a battery of Vo = 10V via two resistors Ry = 47kN and R2 = 27k1. The simulation was run for a total time duration of 300s. Fig 1(a) shows the charging circuit used for the simulation, Fig 1() shows the Voltage vs. time (V-t) response of the circuit charging via Rę = 47kN and Fig 1(c) shows the (V-1) response of the circuit...

  • ONLY NEED SOLUTION TO QUESTION 4 PLEASE, THANK YOU (PLEASE MAKE SURE TO PLOT THE SOLUTION IN MATLAB) Part A (Based off week 7 Workshop content) Consider the RLC circuit where R = 5, C = 1, L = 4 and...

    ONLY NEED SOLUTION TO QUESTION 4 PLEASE, THANK YOU (PLEASE MAKE SURE TO PLOT THE SOLUTION IN MATLAB) Part A (Based off week 7 Workshop content) Consider the RLC circuit where R = 5, C = 1, L = 4 and Vs = 8. 1. Use circuit analysis laws to show that the resistor's voltage and induc tor's voltage can be modelled as the system of ODEs: L RC i the system of ODEs 3. Verify your answer for question...

  • Hi, I need help with problem #13 please, particularly part b and c. , Find an upper bound for 12. 2 5 sinGr3) dx -2 e o...

    Hi, I need help with problem #13 please, particularly part b and c. , Find an upper bound for 12. 2 5 sinGr3) dx -2 e of infection of a disease in a population of 10,000 is given by the function R(t) 10,000 te people per month 13. The rate infec where t is the time in months since the disease broke out. a. Use technology to plot R(t). Why is this a rea- sonable description of a disease spreading...

  • I just need help with question (b) - I don't know how to find c and...

    I just need help with question (b) - I don't know how to find c and k Task 5 Technology may be used as an aid in this task but you must clearly explain your reasoning In this task, you will model some demographic data. A new satellite city, Springtown, has been built outside of the Brisbane metropolitan area to ease population growth in the greater Brisbane area. It was originally planned to house up to 45000 people at most....

  • Use the solution you found in Part 1f to show that the Gompertz model can be...

    Use the solution you found in Part 1f to show that the Gompertz model can be rewritten as dP/dt=−λe^(−rt)P, where λ is a positive constant. j) Consider grouping the factors in the equation like this: dP/dt=-(λe^(-rt))P. Make an interpretation of this equation. In other words, what assumption about tumour growth would lead us to write down such an equation? k) Now consider grouping the factors in the equation like this: dP/dt=−λ(e^(-rt)P). Again, explain what assumption about tumour growth would lead...

  • please help me with part C,D, and E. I dont understand how to get that. The...

    please help me with part C,D, and E. I dont understand how to get that. The posltion of a car as a function of time is 9ven by e (40 m) + (-6.0 m/ot+ (-10 m/)e PartA What is the initial position of the car? Express your answer to two significant figures and include appropriate units. 40 m Previous Answers Correct Part B What is the initial velocity of the car? Express your answer to wo significant Sgures andincode appropriate...

  • need help on some review of a RLC circuit. better? thats the part i need help...

    need help on some review of a RLC circuit. better? thats the part i need help on fig. a lice c Vekt) A vet) R=4002 =1,274 c=1.25 uf lert fig. b A sea venting switching 2nd order ckt can be modled when the gate function Shown in fy b is applied to the parallel LLC ckt shown in Fig a Veo)=5v & i (o)=0A a.) find b.) find ilt) & vlts for oftasoms ilsoms), visoms), & dils & dicsoms) c.)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT