Remove excess delaunay triangulation

Basically I have this two images:
- the left one, is a mesh created with delaunayTriangulation command (in blue) and the contours (in black), plotted as singles points ('.k');
- the right one is the the contours plotted as normal lines (right image, in blue)
What I'm trying to do is to remove the triangles outside the black dots but since I can't create a constrain with those points (since their plot as a line, it turns to get like the second image and not a single contour line), I'm not able to remove them.
Any ideias on how I can remove those triangles? I can upload some of my code if necessary

Products

Release

R2021b

Asked:

on 8 Jun 2022

Answered:

on 22 Jun 2022

Community Treasure Hunt

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

Start Hunting!