Lab 1 - ECOR 2606 Lab 1 Part 1 An experiment involves the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECOR 2606 Lab 1 Part 1 An experiment involves the growth of e-coli in a perti dish. It has been determined that the growth rate of the bacteria is governed by the following equation: t e t B 17 . 0 75 . 56 1 250 ) ( where B ( t ) is the number of bacteria (in '000) t is the time (in hours) Use Matlab in "calculator" mode to calculate the number of bacteria at t = 0 hours and t = 4 hours. In Matlab e x is calculated using function exp : exp(x) gives e x Keep in mind that in Matlab previous command cans be recalled using the up arrow. To solve the expression for t = 4 hours you need only recall and edit your previous command. Implement B ( t ) as an "anonymous" function and test your function with t = 0 hours and t = 4. Now try your function with a vector containing 0 and 4 as shown below: B([0 4]) If you get strange red messages instead of the right answers find the problem and correct it. Use
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 04/14/2010.

Page1 / 2

Lab 1 - ECOR 2606 Lab 1 Part 1 An experiment involves the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online