CBE 20258 Tutorials

Tutorial 1

This tutorial deals with variable I/O, matrix manipulation and plotting. The following files should be downloaded to your directory and the tutorial1.m file should be run.



Tutorial 2

This tutorial illustrates why using the matrix inverse is both inefficient and error prone in solving very large systems of equations. For such problems it is much faster to use the \ operator. The tutorial is given here. Run the tutorial using the "publish" command to get it to display properly - and to show you how to publish your assignments!


Tutorial 3

This tutorial looks at how you can use SVD to do facial recognition. It takes the face pictures of all the CBE graduate students off the department web page from a couple of years ago, calculates an "average" face, and then determines how each individual face compares to the principal components of the average. Thus, an individual face is described by a unique (and very small!) vector of singular values. Download the zip file below containing the analysis program and the pictures.



Tutorial 4

This tutorial shows how you can graphically present bivariate data and draw the bounding ellipse calculated from the statistics in the data.



Tutorial 5

This tutorial looks at the error propagation formula, and applies it to the calculation of an equilibrium constant. The error is pretty large, so we also look at whether the formula yields the correct values (e.g., whether the equilibrium constant follows the normal distribution). Download and run the following script and function, and run through it before tutorial.



Tutorial 6

This tutorial looks at the model linearization and error propagation in the study of Michaelis-Menten Kinetics. Download and run the following script and run through it before tutorial. This is a useful review of the things we have been talking about in class the past week, and it is material that will be covered on the mid-term.



Tutorial 7

This tutorial uses the Margules model to examine activity coefficient data and plot up confidence intervals for the fitted parameters. It also shows the danger of not plotting up your residuals... Download and run the following script and run through it before tutorial.



Tutorial 8

This tutorial demonstrates how Newton's method behaves for functions which have repeated roots (e.g., linear rate of convergence rather than quadratic) and shows how a modified version of the method can regain the quadratic convergence. Note that it only works if you -know- a priori the multiplicity of the root, though! Download and run the following script and run through it before tutorial.



Tutorial 9

This tutorial shows how you can use Lagrange multipliers to look for critical points (maxima or minima - it doesn't care!) for a constrained optimization problem. Download and run the following script and function and run through it before tutorial.



Tutorial 11

This tutorial shows you how you can use Brownian Dynamics to solve a time-dependent PDE in a complicated geometry. Here we look at the average temperature of a triangular rod being quenched (e.g., where we suddenly drop the surface temperature to some lower constant value). Download and read (and run) the following file.