saving points in a sequence to form a contour

1 Ansicht (letzte 30 Tage)
kai
kai am 20 Feb. 2020
Kommentiert: kai am 21 Feb. 2020
Hello,
I have some arbitary points which I can save in a matrix or an array to join them later into line segments , but i would like to save the points in a sequence and form a meaningful contour(polygon).
If possible i would like to save the line segments fromed by joining the points.
Is there any possible way to tackle the problem.
Thank you.
  1 Kommentar
darova
darova am 20 Feb. 2020
Can you attach the data? Show what you have now and what want to see. Make a simple drawing

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

darova
darova am 21 Feb. 2020
I made some research and succeeded. See attached script

Weitere Antworten (1)

kai
kai am 20 Feb. 2020
Thank you for commenting on the question .
I would like to construct a closed polygon bounded by an other polygon with the given data.
The figure shows only the points which are to be joined. The points are a part of a 2d slice (squre outer boundary surrounding both circular and triangular hole).
Therfore i am trying to joint the points in a sequence to form the required contours.
  3 Kommentare
kai
kai am 20 Feb. 2020
lol.
please find the attached file.
kai
kai am 21 Feb. 2020
Thank you it works

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by