![]() ![]() ![]() If you've found this educational demo helpful, please consider supporting us on Ko-fi. How do I create a surface or contour plot with x, y, and z vectors Follow 33 views (last 30 days) Show older comments MathWorks Support Team on Edited: MathWorks Support Team on Accepted Answer: MathWorks Support Team I have three vectors that represent X-Y-Z triplets. The square root of x (for positive x only)Ĭontour lines can be a bit difficult to understand, so if you are having trouble, you may find the 3D surface plotter useful to help visualise the actual shape of the 3D surface. The inverse of the three trigonometric functions listed above The table below lists which functions can be entered in the expression box. To update the function that the graph is showing, enter the new function in the input box, and click "update". For example, the contour plot typically displays angle values from 60 to 0 degrees and I want to clearly show the 30 degree line. I want to be able to create highlighted contour lines at any given value. I have plotted a angle of the function Omega (x,q). You can see how the contour lines equate to the colors in the key just below the graph. Accentuate single contour line on contour plot. Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic for Current User Bookmark Subscribe Mute Printer Friendly Page Surface Contour plot. By default they are set to (-100,100) and 21 respectively, so this means that the displayed contour levels will start at -100 and go up to and including +100 in intervals of 20. Mathcad Mathcad Surface Contour plot Options. You can change which values the contour lines should display by tweaking the "Range of contour levels" and "Number of contour levels" sliders. There's nothing special about which contour lines are displayed, it's just a matter of choice. This is because you are looking at part of the graph that is very steep and a small change in x or y will have a big effect on the value of z. You might also notice that when you have many contour lines close together, if you go slightly off the line, the z value quickly deviates from the line's z value. See how the z value always stays the same. Try picking another contour line and follow it with your mouse. Because along this line, z always equals zero. So, that explains why we see a contour line along the line x = y. You should see in the sidebar that the (x,y,z) indicator displays (2,2,0). So if x = 2, and y = 2, z will equal 4 - 4 = 0. Each point also has a z value which is calculated by plugging the x and y values in to the expression shown in the box. In the demo above, every point in the graph has an x and y value. ![]() Contour lines aren't just limited to giving us info about mountains though, they can help us visualise a surface described by a mathematical function. These are known as contour lines, and every point on the line is at the same height. If you've ever looked at a map, particularly of a hilly or mountainous region, you may have noticed groups of lines like this: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |