What are Contour Levels
3 views (last 30 days)
Show older comments
Hello, I have been trying to understand what the contour levels are.
Matlab docs state that the contourc function takes an argument that determines the levels of which the contours are computed upon, and I have been playing around with the parameter in hope of recognising what they really represent but I honestly cannot get a grip on that.
I will be so grateful if someone could clue me in.
Thank you all,
0 Comments
Answers (1)
John D'Errico
on 11 Oct 2018
A contour of the function z(x,y) is a set of points in the (x,y) plane, such that z(x,y) is fixed at some constant value. That constant value is the contour "level". That set of points in the (x,y) plane is often called a level set.
contour (as well as contourc) allow you to supply specific levels if you are interested in some specific value for z, or you can just tell it a number n (an integer). In that case, contour generates n levels between the min and max of the function over the domain of interest.
2 Comments
See Also
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!