필터 지우기
필터 지우기

saving points in a sequence to form a contour

조회 수: 1 (최근 30일)
kai
kai 2020년 2월 20일
댓글: kai 2020년 2월 21일
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
darova
darova 2020년 2월 20일
Can you attach the data? Show what you have now and what want to see. Make a simple drawing

댓글을 달려면 로그인하십시오.

채택된 답변

darova
darova 2020년 2월 21일
I made some research and succeeded. See attached script

추가 답변 (1개)

kai
kai 2020년 2월 20일
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
kai
kai 2020년 2월 20일
lol.
please find the attached file.
kai
kai 2020년 2월 21일
Thank you it works

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Bounding Regions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by