Hi guys,
I'm currently trying to fit data to a circle, the problem is that the data is only s really small cutout of a circle with much noise. So when I try to fit the data to the circle it's really badly fitted. I use a function which I found here https://blogs.mathworks.com/pick/2008/03/14/fitting-a-circle-easily/
I don't know what to do to fit the data in a better way, maybe some of you could help me
[xfit,yfit,Rfit,a] = circfit(x,y);ang=0:0.01:2*pi; xp=Rfit*cos(ang);yp=Rfit*sin(ang);plot(xfit+xp,yfit+yp,'m.',xfit,yfit,'m.',x,y,'g.');
Best Answer