Get the Isocline from a know levelset plot (Contours) and the function output (Height)
Show older comments
I was checking the function fcontour that we can use to get the contours like the following one.
I took the given example:
f = @(x,y) exp(-(x/3).^2-(y/3).^2) + exp(-(x+2).^2-(y+2).^2);
fc = fcontour(f)

- Now, I would like to see the heights of each contour.
- Suppose I have the height value, how do I get the points that belong the contour that corresponds to the height.
Regards...
3 Comments
point 1 : this is in the doc - see code again below (how to plot the isocline value)
point 2 : it's unclear - by definition the isocline is the ensemble of points having same given height
x = -2:0.2:2;
y = -2:0.2:3;
[X,Y] = meshgrid(x,y);
Z = X.*exp(-X.^2-Y.^2);
contour(X,Y,Z,'ShowText','on')
Prasanna Routray
on 25 Apr 2024
Mathieu NOE
on 25 Apr 2024
see my answer
Accepted Answer
More Answers (0)
Categories
Find more on Data Distribution 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!

