How to close contours

Hello,
I'm creating a 2-D contour plot with contour function:[C,h]=contour(X,Y,Z), but some contours are open. Is there a way to close these contours? I attach the figure
Thanks in advance,
Jorge

3 Comments

Adam Danz
Adam Danz on 28 Apr 2021
Edited: Adam Danz on 10 May 2021
Wouldn't that indicate that data are missing at the contour edges? Are you just calling contour to produce those results or are they images?
Hi Adam,
There isn't indication of missing contour edges. It's just the contours aren't close.
I call contour to produce them.
Jorge
If you attach a mat file containing the X,Y,Z variables I can take a closer look.

Sign in to comment.

Answers (0)

Categories

Products

Asked:

on 27 Apr 2021

Commented:

on 10 May 2021

Community Treasure Hunt

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

Start Hunting!