I have this data set (attached). I tried to find the boundary for it but the boundary doesn't follow outer data points exactly (as shown) especially at the corners. Though I tried to change shrink factor(s). Hope you can help me figure that out.
Thank you
x=Data(:,1);
y=Data(:,2);
s=1; %shrink factor
k = boundary(x,y,1);
Xbound=x(k);
Ybound=y(k);
plot(Xbound,Ybound);

 채택된 답변

Image Analyst
Image Analyst 2017년 9월 8일

0 개 추천

Try different shrink factors, the third argument. Try something between 0.1 and 0.9 until you find one that "hugs" your point set the best.

댓글 수: 1

Faez Alkadi
Faez Alkadi 2017년 9월 8일
Hi,
I did that before, but still doesn't work. Hope you try it with the data i have attached and see. Thank you

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 9월 8일

댓글:

2017년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by