Get the Isocline from a know levelset plot (Contours) and the function output (Height)
Mostrar comentarios más antiguos
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 comentarios
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
el 25 de Abr. de 2024
Mathieu NOE
el 25 de Abr. de 2024
see my answer
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


