As shown in the picture,how to fit discrete points to a closed curve?
3 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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.
If not, you can have a look on, Beizer Curve. https://in.mathworks.com/matlabcentral/fileexchange/33828-generalised-bezier-curve-matlab-code
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!