Assistance with contour plot?

1 visualización (últimos 30 días)
Claire Elizabeth Santos
Claire Elizabeth Santos el 25 de Sept. de 2019
Comentada: Ankit el 26 de Sept. de 2019
I'm trying to get the above contour, but I can only get the contour below.
Do you have any suggestions? The code I am using is :
f = @(x,y) x*y;
fcontour(f)
  2 comentarios
darova
darova el 25 de Sept. de 2019
Look HERE
Star Strider
Star Strider el 25 de Sept. de 2019
Except for the labels, they appear to be the same contour plot.
What differences between them do you see?

Iniciar sesión para comentar.

Respuestas (1)

Ankit
Ankit el 25 de Sept. de 2019
Hello Claire,
You should use contour to get the contour labels (Contours with Labels)
Just have a look here:
Regards
Ankit
  2 comentarios
Claire Elizabeth Santos
Claire Elizabeth Santos el 25 de Sept. de 2019
Hi,
I'm not looking for how to get the labels, but more of how to get the exact contour itself.
Ankit
Ankit el 26 de Sept. de 2019
Then I think your question is not clear to me. From the above two plots it seems like you need to have labels in your plot. What exactly is your requirement?
f = @(x,y) x*y;
hfc = fcontour(f);
contour(hfc.XData, hfc.YData, hfc.ZData, 'ShowText','on')
fcontour(f)
fcontour.PNG

Iniciar sesión para comentar.

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by