Fitting and Ellipse to a set of data points in Mathcad.

660 Views Asked by At

I would like to fit an ellipse to a set of data points in Mathcad and afterwards plot it. Searching the net, I stumbled on to Mike Shaw's post, which answers 75% of my question: See Plotting an Ellipse after an Ellipse Fit

Could someone enlighten me how to determine the co-effiecients and centre of the ellipse, in Mathcad, using the fitting algorithm; this for formula: $ax^2 +bxy+cy^2 +dx+ey+f=0$

Thanks in advance,

Simon

1

There are 1 best solutions below

2
On

You can find the mathematics in this document, along with several other fitting techniques. The same web site has code to do the fitting. I have never used the fitting code, but I have used other code from this site, and found it be of very high quality.

Mike Shaw's post says he used the algorithm decribed in this paper, which also looks very good, to me.