Math 151 – Lab Session TA: Peng Wei Office: BLOC 509 Email:

advertisement
Math 151 – Lab Session
TA: Peng Wei
Office: BLOC 509
Email: weip@math.tamu.edu
Week 1
• Tasks for today:
• MATLAB setup
• Assignment A instruction
Week 1
• Use your netid (lowercase) and password
(case-sensitive) to log in;
• Go to
www.math.tamu.edu/courses/math151
bookmark this page!!!
• Click on “Lab Schedule” –-> “Written
Setup” under Weeks 1-3;
Week 1
Math built-in functions:
• sqrt(x), nthroot(x), exp(x), abs(x),
log(x), log10(x), factorial(x)
• sin(x), sind(x), cos(x), cosd(x), tan(x),
tand(x), cot(x), cotd(x)
• round(x), fix(x), ceil(x), floor(x),
rem(x,y), sign(x)
Week 1
• Variables in Matlab
Week 1
• Assignment #1
l
l
Chapter 1: #5, 17, 25, 38, 40
Chapter 11: #4, 8, 13, 16, 17
Week 1
• Something useful…
• Bring Gilat books to lab AND help sessions;
• Make use of instructional videos;
• Matlab Help Sessions (date/time/location
TBA);
• Do NOT download textbook to the Calclab
account.
• Access MATLAB and files outside of lab
(refer “Assignments”).
Week 2
• Tasks for today:
• Assign teams
• Assignment A instruction (continue)
• Publish your homework to pdf
• Procedure for Copied Answers
Week 2
• Each team has 3-4 students,
• Form teams as you wish, otherwise I’ll
assign,
• Each team turn in ONE set of
problems, stapled together with a
cover sheet (you can use MS Office
WORD to create a cover sheet)
• Assignment #1 due by 5pm Friday,
Feb., 5, 2016.
Week 2
• Symbolic calculation
– syms -- Gilat pp350-353
– solve -- Gilat pp358
– subs -- Gilat pp372-373
– ezplot -- Gilat pp369-371
– int -- Gilat pp365-366
– diff -- Gilat pp363-364
Week 2
• Publish to pdf
– In the Command Window, type
publish(‘filename.m’,’pdf’)
of course, filename is the name of your
file!
Week 2
• Procedure for Copied Answers
• Each team member should initial any
problems they worked on.
• If one (or more) the problems are
copied, the ENTIRE TEAM will lose
those points, and the person(s)
responsible for the problem(s) will
have further action taken!
Week 3
• Tasks for today:
• Work on your project. Discuss with
your team.
Week 4
• Tasks for today:
• Chapter 2: creating vectors and
matrices
• Chapter 3: operations on vectors and
matrices
Week 4
• Chapter #2
– create row vector: pp36-37
– create column vector: pp36-37, pp41-42
– transpose: p41
– colon notation: p37
– linespace: p38
– create matrix: pp39-40
– zeros, ones, eye: pp40-41
– addressing arrays: pp44-45
Week 4
• Chapter #3
– element-by-element operations: pp72-74
– built-in array functions: pp76-77
• in particular: sum, dot
– solving equations with matrices: pp68-72
• write in matrix form: p68
• inverse: p69
• left-division: p70
Week 7
• Tasks for today:
• Chapter #4: Formatting output in
MATLAB,
• Chapter #5: Plotting.
Week 7
• Commands
• fprintf: pp104-107
• plot: pp139-140
• title, xlable, ylable: p144
• legend: p145
• polar: pp156-157
• axis command: pp147-148
Download