필터 지우기
필터 지우기

Determine outlne of dataset points

조회 수: 8 (최근 30일)
Somto Dibiaezue
Somto Dibiaezue 2018년 5월 11일
답변: Steven Lord 2018년 5월 11일
Hi, I'm trying to get a curve that best traces the outer layer of the points in the attached file orproduces a close fit of the outline. I've tried polyfit and isqcurvefit with the former being the best but this barely works as my data set is not a true second order system. I've tried interpolating polynomials but this hasn't worked or I might be implementing it wrong. Any guidance would be appreciated. Thanks
  댓글 수: 2
Siyu Guo
Siyu Guo 2018년 5월 11일
I'm not very sure about what you are willing to mean by the "outer layer". If you mean a rough shape containing most of the data points and meanwhile its boundary does not deviate from the data points "too greatly", I guess a least squares fitting should be able to provide a good start point. If you mean a polygon containing "all" of the points while the deviations of the points from the polygon are small enough, then maybe you can first find the convex hull of the points, then use polygon edge splitting to approach a polygon that fits the data better.
Walter Roberson
Walter Roberson 2018년 5월 11일
Perhaps boundary()

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

채택된 답변

Steven Lord
Steven Lord 2018년 5월 11일
As Walter suggested, boundary is one option. Depending how tightly you want the boundary to surround the points, alphaShape or convhull are other options.
If you want a mathematical equation instead of a computational geometry representation, assuming you know the general form of the equation you could try regression.

추가 답변 (0개)

카테고리

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