Smooth contours in simple 2D matrix

Dear all,
I have a 2D matrix that I plot via imagesc. It's a simple matrix full of three numbers: 1, 2 and 3 (attached)
I would like to have smooth contours separating the regions of ones, twos and threes, instead of the rough boundaries. How could I do it? Thanks, for the help!

Respuestas (1)

Mike Garrity
Mike Garrity el 5 de Jun. de 2015

0 votos

Contour won't you control the interpolation, but you can do it yourself. You basically need to follow this example I posted on the graphics blog for surface:

1 comentario

Ac
Ac el 6 de Jun. de 2015
OK, I was indeed checking the interp2 function. I'll go through your example and do some test. Thanks!

Iniciar sesión para comentar.

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Preguntada:

Ac
el 5 de Jun. de 2015

Comentada:

Ac
el 6 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by