How to limit the contour plot to specific points?

11 visualizaciones (últimos 30 días)
Philippe Corner
Philippe Corner el 30 de Oct. de 2018
Comentada: Star Strider el 30 de Oct. de 2018
How could I plot contour until the toppest scatter points?

Respuesta aceptada

Star Strider
Star Strider el 30 de Oct. de 2018
See the documentation on Contours at One Level (link) in the contour (link) documentation.
  4 comentarios
Philippe Corner
Philippe Corner el 30 de Oct. de 2018
Not sure why is not working. I had to create my contour using a matrix
[c,h]=contourf(xq,yq,reshape(zq,100,100));
Star Strider
Star Strider el 30 de Oct. de 2018
I cannot determine the reason it is not working without your data and code. The first two arguments can be vectors or matrices, the third must be a matrix. The dimensions must match in any event.
Apparently your reshape call solved the problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by