Lauren M. Magee Week 3: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(→‎Part 2: Numerical Value Change)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== MATLAB Skills Development ===
==MATLAB Skills Development==


* Part I: Create a script that includes the following elements
===Part 1===
** Define a vector u containing the elements 1,2,3,4,5,6,7,8,9,10 using the colon operation
* [[Media:Week 3 Script.mat]]
** Define another vector v containing elements that are the square of the vector x
* [[Media:Lauren M Magee Week 3 Vector Data.xls]]
** Plot v versus u (make sure you know what that sentence means!!) using circles on the points that are connected with dashed lines
* [[Image:Vector U Vs. Vector V.tif]]
** 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.
===Part 2===
** Create a function that returns ln(x) + x; its first line should be this: function [y] = logPlusX(x)
* [[Image:LogPlusX.m]]
** Create a script that uses the MATLAB function fsolve to solve the equation.  This script may be short.
* [[Image:FsolveScript.m]]
* Numerical Value = .5671
 
===Part 3===
* [[Image:Nutrient Colony.jpg]]
* [[Image:Chemostat Dilution of .15.jpg]]
* [[Image:Nutrient Colony.jpg]]


* 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.
{{Template:Lauren M. Magee}}
{{Template:Lauren M. Magee}}

Latest revision as of 01:09, 3 February 2015

MATLAB Skills Development

Part 1

Part 2

Part 3

Lauren M. Magee

  1. Week 1
  2. Week 2
  3. Week 3
  4. Week 4
  5. Week 5
  6. Week 6
  7. Week 7
  8. Week 8
    • Assignment Cancelled
  9. Week 9
  10. Week 10
  11. Week 11
  12. Week 12
  13. Week 13
  14. Week 14
  15. Week 15