This week, students will work on Lab 5 which covers... operations on vectors to produce plots)

advertisement
This week, students will work on Lab 5 which covers chapter 5 of Gilat (using element-by-element
operations on vectors to produce plots)
g5c5p165x07: (plotting functions, hold on, labels, and legends): The method for plotting functions is
on pp139-140 of Gilat. Students will use element-by-element operations to create a graph (*VERY
IMPORTANT). See the example on these pages in detail, and especially note what happens if you
choose a stepsize (delta-x) too large (it would be especially interesting to show the plot with default
size 1!). you should know that all graphs must include a title and axis labels (Gilat p144) and this
graph should include a legend (p145). NOTE: The derivative does NOT need to be done in MATLAB.
ALSO NOTE: The hold on command is discussed on pp142-143.
g5c5p166x12: (plotting functions, hold on, axis): This function approaches +/-infinity as x->-2 and
x->5. Two options to work around this:
1) similar to what is stated in the given problem, plot 2 graphs: one from
-4 to just before -2, one from just after -2 to just before 5, and the third from just after 5 to 9. Use the
hold on command to show all three plots on the same graph.
2) simply plot from -4 to 9 and use the "axis" command to limit the y-range. Refer to pp147-148 for the
use on this command.
g5c5p166x13 (plotting functions, hold on): Similar to the first example, but x and y are both functions
of t. Follow the directions in this problem and use the hold on command to graph both parts.
g5c5p167x19 (plotting functions, review of max): Plot z and F as done in #7, then find the numbers
zmax and F(zmax), the distance where Force is maximized (use "help max" or see p76 for a review of
the max command).
g5c5p167x20 (polar): Define t as in #12, but then define r and theta as functions of t and use the polar
command to plot (pp156-157). NOTE: I do not have a part b) in my version of the book and did not
find anything in the errata, so I am assuming there is only part a) for this problem.
Also please work on this week's Maplets on your own. As motivation, point out to you that about 75%
of Exam I came from material that could have been practiced with Maplets! Even if you do not need to
walk through the specific steps, Maplets give youunlimited practice problems for a particular topic. So
even if youare not being quizzed on these Maplets, you could still use the Maplets to practice them and
start preparing for the next exam.
Download