Fall 2009 Math 151 Matlab Assignment 9
- Students will work together in their assigned teams. In this
manner they will:
BEFORE starting the lab, read Chapter 10 of your Matlab
(Gilat 3rd Edition).
- finish assignments more quickly and cross-check each other's work;
- give their TAs a more manageable amount to grade;
- build their networking and cooperation skills.
In Chapter 10 of your MATLAB lab manual and chapter 4 of
Stewart, do the following problems.
- g307x04, g308x09, g310x18, g312x24*, s314x54
For each problem, you'll work out of the MATLAB Editor. You'll
interactively save and run your MATLAB M-file, writing input and
output to a diary file. If you have graphics, save your figure files
and export them as Encapsulated PostScript. For example, the
files for the first problem are:
- g307x04.m: M-file with MATLAB input commands and comments
- func.m: Any function M-files you create
- g307x04.txt: diary file with input and output interspersed
- g307x04.eps: Encapsulated postscript printer file for use
with xprint in the calclabs
- g307x04.fig: Figure file for printing directly from Windows
You'll print out the .txt and .eps files using
xprint from the Calclab or .fig files (directly from
Matlab on a Windows computer). Do any hand work on ruled notebook
paper or engineering green graph paper.
Regarding the figures themselves, interactively edit them. Put on
labels; insert text or arrows; change line thicknesses; etc.
This assignment is due the week of 16-20 Nov, at the START of your
computer lab. Be sure to manage your time according to your
schedule. Do NOT put things off! It is highly advisable that you use the
50 minutes in lab to complete as much of the assignment as possible while
your TA is available to help.
When you finish, you will turn in the documentation of your
Matlab work to your TA. Make sure the following information is on a cover
- Fall 2009 Math 151 Matlab Assignment 9
- Section xxx, Group Members' Names, Student UINs
In addition, each group member should initial the problem(s) he or
she worked on, to encourage ALL group members to participate in the lab.
Various MATLAB videos that you have viewed in advance
show how to use xprint to print your diary .txt and
graphics .eps files from CalcLab. Alternatively, transfer your
files to the Open Access Lab using a flash drive, email, or FileZilla and
print directly from Matlab.
- For g312x24: create the distance vector for part (b)
element-by-element using a for loop and finding xi by
applying the trapz command on the first "i" elements of the
vectors t and v. Refer to Gilat, p41 on how to create a vector from the
first "i" elements of a given vector.
- There are samples
of the types of problems you have to do in Chapter 10 of your lab manual.
Watch the MATLAB 9 streaming video if you have not already done so.
Please send comments, questions, or suggestions
to David Manuel at
Last updated Mon, 03/Aug/2009, 16:25