Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fitting Data: Bacteria Scientists have been investigating whether a new chemical ( which due to non - disclosure agreements, we will call Chemical X

Fitting Data: Bacteria
Scientists have been investigating whether a new chemical (which due to non-disclosure agreements, we will call "Chemical X") deters the growth of certain bacterial
colonies. They have varied the concentration of Chemical x and measured how long it takes for an inital sample of 10 cells to grow to fill the Petri dish.
The scientists are not sure from a quick look at the data whether a quadratic or cubic fit wil be better for this data, so you are to complete the MATLAB code below to
perform both data fits. Then the program will plot the data for you. The data are provided in two vectors in the code.
Script o.
% Input data
concentration =[0:.1:2.5];% concentration of chemical in M/L
% time until Petri dish is filled
% Perform a quadratic fit of the data
% Complete the two lines below, replacing ... with the appropriate code for a quadratic fit
c_quad =...,% find the coefficients
quad_fit =dots calculate values for the fit
% Perform a cubic fit of the data
% Complete the two lines below, replacing ... with the appropriate code for a cubic fit
c_cube =dots,% find the coefficients
cube_fit =dots,% calculate values for the fit
% Plot both fits and the original data on the same axes
plot(concentration, time,'*', concentration, quad_fit, '-', concentration, cube_fit, 'k--');
legend('Data', 'Quadratic fit', 'Cubic fit');
title('Effectiveness of Chemical x in Preventing Bacterial Growth');
xlabel('Concentraton (M/L)');
ylabel('Time to fill dish (days)');
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions