Level Curves B Level Curves and Contour Map One of the most useful and common methods...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Level Curves B Level Curves and Contour Map One of the most useful and common methods for visualizing functions (or surfaces) of two varibles is a Contour Map in which points of constant elevation are joined in a 2D plane to form level curves (or contour curves). Definition: The level curves of a function f of two variables are the curves with equations f(x, y) =k, where k is a constant (in the range of f). A level curve f(x,y) = k is the set of all points in the domain off at which f takes on a given value k. In other words, it shows where the graph of f has height k. You can see from the picture below (Figure 1) the relation between level curves and horizontal traces. The level curves f(x, y) =k are just the traces of the graph off in the horizontal plane z k projected down to the xy-plane. Demonstration a = -1; b = 1; h = 0.1; [x, y] = meshgrid(a:h:b); z = 9-x.^2-2*y.^2 subplot (2,1,1); surf(x,y,z); title("Surface Plot"); subplot (2,2,2); mesh (x,y,z); title("Mesh Plot"); subplot (2,2,3); contour3(x, y, z); title("Level Curves"); grid on subplot (2,2,4); contour(x,y,z); title("Contour Plot"); axis equal grid on %Enter the lower limit of both x and y in the domain of the sketch %Enter the upper limit of both x and y in the domain of the sketch %Identify the limit %Create the domain of the graph %Encode the function in terms of x and y (Note that all operations between x's and y's are done with dotted operationF1 %Plot the given surface %Set the title as "Surface Plot" %Use the second plotting space %Mesh Plot the given surface % Set the title as "Mesh Plot" %Use the third plotting space %Plot the Level Curves of the given surface % Set the title as "Level Curves" %Use the fourth plotting space %Plot the Level Curvesof the given surface %Set the title as "Contour Plot" %Set the x axis and y axis to have the same scale My Solutions > % Start Using Rotate 3D Tools to rotate the solids Exercise: Perform the Surface, Mesh, Level Curves and Contour Plot of the surface over the indicated domain z = xye-²-², -2<x<2 and -2<y<2 at h=0.2 Exercise: Perform the Surface, Mesh, Level Curves and Contour Plot of the surface over the indicated domain z = xye-²-², -2<x<2 and -2<y<2 at h=0.2 Script %Set the Domain of both x and y by setting the lower limit 2 a = 3 b = 4 h = 5 6 %Setup the graphing properties for both x and y and z. 7 8 9 10 %First Plotting Space. Sketch the surface with the title "Surface Plot" 11 12 13 %Enter the lower limit of both x and y in the domain of the sketch %Enter the upper limit of both x and y in the domain of the sketch %Identify the increment 28 28 29 14 15 %Second Plotting Space. Sketch the Mesh with the title "Mesh Plot" 16 17 18 19 20 21 %Third Plotting Space. Sketch the Level Curves at various heights with the title "Level Curves" %Use the third plotting space 22 30 31 %Divide the plotting space into Four parts and use the first plotting area %Plot the given surface % Set the title as "Surface Plot" %Create the domain of the graph %Encode the function in terms of x and y (Note that all operations between x's and y's are done with dotted operat 23 24 23 25 26 27 %Fourth Plotting Space. Sketch the Contour Map with the title "Contour Plot" %Use the fourth plotting space %Plot the Level Curvesof the given surface %Set the title as "Contour Plot" %First Plotting Space. Sketch the surface with the title "Surface Plot" %Use the second plotting space %Mesh Plot the given surface % Set the title as "Mesh Plot" %Plot the Level Curves of the given surface % Set the title as "Level Curves" % Set Grid On Save %Set Grid On %Set the Axes to have the same scale 32 33 34 % Start Using Rotate 3D Tools to rotate the solids C Reset MATLAB Documentation ▶ Run Script ? Level Curves B Level Curves and Contour Map One of the most useful and common methods for visualizing functions (or surfaces) of two varibles is a Contour Map in which points of constant elevation are joined in a 2D plane to form level curves (or contour curves). Definition: The level curves of a function f of two variables are the curves with equations f(x, y) =k, where k is a constant (in the range of f). A level curve f(x,y) = k is the set of all points in the domain off at which f takes on a given value k. In other words, it shows where the graph of f has height k. You can see from the picture below (Figure 1) the relation between level curves and horizontal traces. The level curves f(x, y) =k are just the traces of the graph off in the horizontal plane z k projected down to the xy-plane. Demonstration a = -1; b = 1; h = 0.1; [x, y] = meshgrid(a:h:b); z = 9-x.^2-2*y.^2 subplot (2,1,1); surf(x,y,z); title("Surface Plot"); subplot (2,2,2); mesh (x,y,z); title("Mesh Plot"); subplot (2,2,3); contour3(x, y, z); title("Level Curves"); grid on subplot (2,2,4); contour(x,y,z); title("Contour Plot"); axis equal grid on %Enter the lower limit of both x and y in the domain of the sketch %Enter the upper limit of both x and y in the domain of the sketch %Identify the limit %Create the domain of the graph %Encode the function in terms of x and y (Note that all operations between x's and y's are done with dotted operationF1 %Plot the given surface %Set the title as "Surface Plot" %Use the second plotting space %Mesh Plot the given surface % Set the title as "Mesh Plot" %Use the third plotting space %Plot the Level Curves of the given surface % Set the title as "Level Curves" %Use the fourth plotting space %Plot the Level Curvesof the given surface %Set the title as "Contour Plot" %Set the x axis and y axis to have the same scale My Solutions > % Start Using Rotate 3D Tools to rotate the solids Exercise: Perform the Surface, Mesh, Level Curves and Contour Plot of the surface over the indicated domain z = xye-²-², -2<x<2 and -2<y<2 at h=0.2 Exercise: Perform the Surface, Mesh, Level Curves and Contour Plot of the surface over the indicated domain z = xye-²-², -2<x<2 and -2<y<2 at h=0.2 Script %Set the Domain of both x and y by setting the lower limit 2 a = 3 b = 4 h = 5 6 %Setup the graphing properties for both x and y and z. 7 8 9 10 %First Plotting Space. Sketch the surface with the title "Surface Plot" 11 12 13 %Enter the lower limit of both x and y in the domain of the sketch %Enter the upper limit of both x and y in the domain of the sketch %Identify the increment 28 28 29 14 15 %Second Plotting Space. Sketch the Mesh with the title "Mesh Plot" 16 17 18 19 20 21 %Third Plotting Space. Sketch the Level Curves at various heights with the title "Level Curves" %Use the third plotting space 22 30 31 %Divide the plotting space into Four parts and use the first plotting area %Plot the given surface % Set the title as "Surface Plot" %Create the domain of the graph %Encode the function in terms of x and y (Note that all operations between x's and y's are done with dotted operat 23 24 23 25 26 27 %Fourth Plotting Space. Sketch the Contour Map with the title "Contour Plot" %Use the fourth plotting space %Plot the Level Curvesof the given surface %Set the title as "Contour Plot" %First Plotting Space. Sketch the surface with the title "Surface Plot" %Use the second plotting space %Mesh Plot the given surface % Set the title as "Mesh Plot" %Plot the Level Curves of the given surface % Set the title as "Level Curves" % Set Grid On Save %Set Grid On %Set the Axes to have the same scale 32 33 34 % Start Using Rotate 3D Tools to rotate the solids C Reset MATLAB Documentation ▶ Run Script ?
Expert Answer:
Answer rating: 100% (QA)
It seems like youre asking for assistance with plotting the surface mesh level curves and contour pl... View the full answer
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
You have been asked to prepare a December cash budget for Ashton Company, a distributor of exercise equipment. The following information is available about the company's operations: a. The cash...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
You have the following frequency distribution of the Travel Time to work for residents in South Beach neighborhood. Please answer the questions that follow after the Frequency Table. Travel Time a....
-
How transparent do sites like Alibaba.com make import-export transactions? To what degree would you worry about fraud? What safeguards would you seek?
-
Find the following values for a lump sum assuming semiannual compounding: and quarterly compounding: a. The future value of $500 invested at 8 percent for one year b. The future value of $500...
-
In Maple, one can type simplify(LegendreP(2*n-2,0)-LegendreP(2* \(\mathbf{n}, \mathbf{0})\) ); to find a value for \(P_{2 n-2}(0)-P_{2 n}(0)\). It gives the result in terms of Gamma functions....
-
Balance Sheet Classification of Various Liabilities how would each of the following items be reported on the balance sheet? (a) Accrued vacation pay. (b) Estimated taxes payable. (c) Service...
-
Sales, Production, Direct Materials Purchases, and Direct LaborCost BudgetsThe budget director of Royal Furniture Company requestsestimates of sales, production, and other operating data from thev 2...
-
1. Bare cost and total cost (incl. O&P) of formwork for spread footings (20 pts, specify which lines (or index) in RSMeans data are used) 2. Bare cost and total cost of reinforcement for spread...
-
1. Deposit $1,000 in bank account at 1% annual interest. How much is in account after 2 years?
-
What conditions must be satisfied for a process to be in thermodynamic equilibrium?
-
Explain the importance of the demonstration of Joule's experiment in the formulation of the first law of thermodynamics.
-
What are the factors responsible for the irreversibility of a process?
-
Give a proper concept of energy, internal energy, kinetic energy and potential energy.
-
Martin House Laboratories operates medical laboratories throughout North America. Martin House is currently studying three of its laboratories, which use differing brands of equipment, running at...
-
The Maha Cutlery Outlet sells dinner sets. It provides you the following information: Maximum demand: 2 0 0 per week Average demand: 1 6 0 per week Minimum demand: 1 4 5 per week Maximum lead time: 2...
-
Show, if u(x, y) and v(x, y) are harmonic functions, that u + v must be a harmonic function but that uv need not be a harmonic function. Is e"e" a harmonic function?
-
Sometimes we can infer something about tastes from observing only two choices under two different economic circumstances. A. Suppose we consume only beer and pizza (sold at prices p1 and p2...
-
Increased Liquidity, Procrastination and National Savings: Over the past few decades, increasingly sophisticated financial investment possibilities have enabled individuals to place their savings...
-
In exercise 23.3, we analyzed the case of a monopoly health insurance provider. We now extend the analysis to second-degree price discrimination, with x again denoting the degree of health insurance...
-
210 Use divisibility rules to determine if each of the following is divisible by 3.
-
130 Use divisibility rules to determine if each of the following is divisible by 5 .
-
237 Use divisibility rules to determine if each of the following is divisible by 5 .
Study smarter with the SolutionInn App