Extracting points representing curve
Mostra commenti meno recenti
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 Commenti
KSSV
il 20 Ago 2020
Already you have the points (x,y) in hand. What you want?
Shweta Saboo
il 20 Ago 2020
KSSV
il 20 Ago 2020
Okay share the data and what you expect.
Risposte (1)
KSSV
il 20 Ago 2020
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
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!