

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Lab; Class: Computer Methods in Biological Engineering; Subject: Biological and Agricultural Engineering; University: North Carolina State University; Term: Unknown 1989;
Typology: Lab Reports
1 / 2
This page cannot be seen from the preview
Don't miss anything!


1
BAE 200 Lab # DUE MONDAY SEPTEMBER 29 at 12 NOON SUBMIT the files via WolfWare (http://courses.ncsu.edu/bae200/) by MONDAY September 29 th^ at 12 NOON.
ASSIGNMENT: Chapter 9 - problems 6, 11, 13 Chapter 10 - problem 5 Chapter 11 - problem 3 (use fprintf to display the values and units) HINT:you can extract rows or columns from an array (or table you create), and this may save you a couple of lines of code (See p 144).
IMPORTANT!
Comments on Homework 3 - Why you should check your values by hand!
Problem Hints and Examples (work these first in Lab today):
Solving Simultaneous Equations
Examples Chapter 9 - Work the steps on pages 256 - 257,Example 4, and Example on p 260 (left division - the better alternative)
Chapter 10 -Solve Function to solve for symbolic variables p 277 (eq 4,5,6)
2
Interpolation p 292- Interpolation is a technique in which we estimate a variable’s value between 2 known values.
Given the dataset above, linear interpolation allows you to estimate the values in between the known values using the following relationship:
o o y x x
y y y x x + −
1
1
MATLAB has the interp1 function to help you do this. It defaults to linear interpolation, but MATLAB also has other interpolation approaches shown on page
It follows the syntax yi = interp1(x,y,x (^) i,’method’), where yi is the interpolated value you are seeking, x and y are the horizontal and vertical components of the input data points (independent and dependent variables), x (^) i is the horizontal component of the interpolation point, and method refers to linear, cubic spline, etc. Examples Work through the example on p294 to the top of p 295 for practice. Note the additional plot function “axis” that allows you to define the limits of your x and y axes. Also use two different markers for your data.
Curve fitting, Numerical Differentiation and Integration (p300-323) May be useful in your future classes
x (^) o x x (^1)
y (^) o
y (^1) y