This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: ME 218 (17795) Alan ShuMing Kwok (sk25784) Lab 5 Problem 3.1.1 In onevariable.m, create a vector x = [10:0.1:20] and enter the commands to plot the function f at these values of x. Label the horizontal axis “x” and the vertical axis “f.” Give the plot a title containing your name. Turn in your plot and mfile commands used to generate the the plot. ME 218 (17795) Alan ShuMing Kwok (sk25784) Problem 3.1.2 In the Figure Window of the previous problem, use the magnifying glass tool to zoom in on the place(s) where f goes to zero. To an accuracy of two significant digits, what value(s) of x correspond to f = 0? X = 0.72, 2.3, 17 corresponds to f = 0 ME 218 (17795) Alan ShuMing Kwok (sk25784) Problem 3.1.3 Complete the MATLAB routine below to perform Bisection according to the description above. Hint: (a) fill in the conditions for the while loop, (b) assign the midpoint to x on the line just after the while command, (c) on the next line, assign the value of f(x) to f at x, (d) on the next few lines, create an IF statement that reassigns a and b appropriately for the two cases f at x *...
View
Full
Document
This note was uploaded on 09/04/2011 for the course ME 218 taught by Professor Unknown during the Spring '08 term at University of Texas at Austin.
 Spring '08
 Unknown

Click to edit the document details