Extracting points representing curve

1 次查看(过去 30 天)
Shweta Saboo
Shweta Saboo 2020-8-20
回答: KSSV 2020-8-20
I have certain set of (x,y) coordinates representing a shape. How to extract those points which define a curve among the available points?
  3 个评论
Shweta Saboo
Shweta Saboo 2020-8-20
I want to select(extract) only those points representing curve from the complete set of points.
KSSV
KSSV 2020-8-20
Okay share the data and what you expect.

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2020-8-20
In case are you looking for polyfit. ? Let (x,y) be the points you have and you want fit a quadratic polynomial.
p = polyfit(x,y,2) ;
xi = x ;
yi = polyval(p,xi) ;
iwant = [xi yi] ; % assuming xi, yi to be column arrays

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by