As shown in the picture,how to fit discrete points to a closed curve?

2 ビュー (過去 30 日間)
Wesley
Wesley 2020 年 12 月 4 日
コメント済み: Wesley 2020 年 12 月 4 日

採用された回答

KSSV
KSSV 2020 年 12 月 4 日
Your points are no tin an order....first make them into an order using boundary.
load data1.mat ;
x = data1(:,1) ; y = data1(:,2) ;
idx = boundary(x,y) ;
x = x(idx) ; y(idx) ;
plot(x,y)
Hope the above one works, if you are okay with the above, you have your data into a polygon.
  1 件のコメント
Wesley
Wesley 2020 年 12 月 4 日
Thank you very much for solving my problem in time. Your program is very helpful.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by