Borrar filtros
Borrar filtros

How Can I do contour plot?

1 visualización (últimos 30 días)
Francesco
Francesco el 3 de Mzo. de 2014
Editada: Francesco el 20 de Mzo. de 2014
Suppose I have a square figure.

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Mzo. de 2014
MATLAB cannot create continuous figures. You could approximate a continuous figure by creating a surf() or a patch() and configure shading and lighting properties. For your purpose I think a surf() would be most appropriate.
  1 comentario
Walter Roberson
Walter Roberson el 3 de Mzo. de 2014
Before you were working with x (monotonically increasing) and with y (a variety of values), and with no Z. That was not enough information to generate a 3D plot.
If you now have x and y coordinates for each of the points, and you have a z (value) for the points as well, then you can use the approaches discussed early on: griddata() or trisurfinterp or scatteredinterpolant. Take the resulting rectangular array of z and surf() it, and set the shading properties of the surface and set up the lighting properties as well.

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