BIOL398-04/S15:Week 3: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(3 intermediate revisions by the same user not shown)
Line 18: Line 18:
** Link to this assignment from your journal entry.
** Link to this assignment from your journal entry.
** Don't forget to add the "BIOL398-04/S15" category to the end of your wiki page.
** Don't forget to add the "BIOL398-04/S15" category to the end of your wiki page.
=== MATLAB Skills Development ===
* Part I: Create a script that includes the following elements
** Define a vector u containing the elements 1,2,3,4,5,6,7,8,9,10 using the colon operation
** Define another vector v containing elements that are the square of the vector x
** Plot v versus u (make sure you know what that sentence means!!) using circles on the points that are connected with dashed lines
** Save your plot as a TIFF file
** Save your data into an excel spreadsheet using the MATLAB command xlswrite
* Part II: Use MATLAB to solve the equation ln(x) + x = 0. The following steps will help.
** Create a function that returns ln(x) + x; its first line should be this: function [y] = logPlusX(x)
** Create a script that uses the MATLAB function fsolve to solve the equation.  This script may be short.
* Part III: Play with the four m-files from the Thursday Jan 22 schedule box.
** Run the nutrient/colony model
** Run the chemostat model
** Save the graphical output from these two runs to JPEG files.
** Run the chemostat model a second time, but cut the dilution rate in half
** Plot both chemostat model runs on the same graph, adding a legend that allows a reader to identity both runs, and save as JPEG.
=== How To Submit Your Work ===
* Part I.
# Upload the MATLAB script and provide a link on your individual journal for Week 3.
# Upload the Excel workbook and provide a link on your individual journal for Week 3.
# Upload your graph's TIFF file and provide a link on your individual journal for Week 3.
* Part II.
# Upload your script and function files and provide a link on your individual journal for Week 3.
# Post the numerical answer you got on your individual journal for Week 3.
* Part III.
# Upload three plots and provide a link on your individual journal for Week 3.


== Shared Journal Assignment ==
== Shared Journal Assignment ==
Line 27: Line 58:
* Add the "BIOL398-04/S15" category to the end of the wiki page (if someone has not already done so).
* Add the "BIOL398-04/S15" category to the end of the wiki page (if someone has not already done so).


 
=== Reflection ===
 
# What was the purpose of this assignment?
</div>
# How might you adjust the chemostat program to use two nutrients?
# How do might these equations relate to the journal club paper?

Revision as of 21:54, 28 January 2015

BIOL398-04: Biomathematical Modeling

MATH 388-01: Survey of Biomathematics

Loyola Marymount University

Home       People        LionShare       Help      


This journal entry is due on Tuesday, February 3 at midnight PST (Monday night/Tuesday morning). NOTE that the server records the time as Eastern Standard Time (EST). Therefore, midnight will register as 03:00.

NOTE: this page is under construction.

Individual Journal Assignment

  • Store this journal entry as "username Week 3" (i.e., this is the text to place between the square brackets when you link to this page).
  • Create the following set of links. (HINT: These links should all be in your personal template that you created for the Week 1 Assignment; you should then simply invoke your template on each new journal entry.)
    • Link to your journal entry from your user page.
    • Link back from your journal entry to your user page.
    • Link to this assignment from your journal entry.
    • Don't forget to add the "BIOL398-04/S15" category to the end of your wiki page.

MATLAB Skills Development

  • Part I: Create a script that includes the following elements
    • Define a vector u containing the elements 1,2,3,4,5,6,7,8,9,10 using the colon operation
    • Define another vector v containing elements that are the square of the vector x
    • Plot v versus u (make sure you know what that sentence means!!) using circles on the points that are connected with dashed lines
    • Save your plot as a TIFF file
    • Save your data into an excel spreadsheet using the MATLAB command xlswrite
  • Part II: Use MATLAB to solve the equation ln(x) + x = 0. The following steps will help.
    • Create a function that returns ln(x) + x; its first line should be this: function [y] = logPlusX(x)
    • Create a script that uses the MATLAB function fsolve to solve the equation. This script may be short.
  • Part III: Play with the four m-files from the Thursday Jan 22 schedule box.
    • Run the nutrient/colony model
    • Run the chemostat model
    • Save the graphical output from these two runs to JPEG files.
    • Run the chemostat model a second time, but cut the dilution rate in half
    • Plot both chemostat model runs on the same graph, adding a legend that allows a reader to identity both runs, and save as JPEG.

How To Submit Your Work

  • Part I.
  1. Upload the MATLAB script and provide a link on your individual journal for Week 3.
  2. Upload the Excel workbook and provide a link on your individual journal for Week 3.
  3. Upload your graph's TIFF file and provide a link on your individual journal for Week 3.
  • Part II.
  1. Upload your script and function files and provide a link on your individual journal for Week 3.
  2. Post the numerical answer you got on your individual journal for Week 3.
  • Part III.
  1. Upload three plots and provide a link on your individual journal for Week 3.

Shared Journal Assignment

  • Store your shared journal entry in the shared Class Journal Week 3 page. If this page does not exist yet, go ahead and create it (congratulations on getting in first :) )
  • Link to your journal entry from your user page.
  • Link back from the journal entry to your user page.
  • Sign your portion of the journal with the standard wiki signature shortcut (~~~~).
  • Add the "BIOL398-04/S15" category to the end of the wiki page (if someone has not already done so).

Reflection

  1. What was the purpose of this assignment?
  2. How might you adjust the chemostat program to use two nutrients?
  3. How do might these equations relate to the journal club paper?